Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add semicolons to appease a brittle parser #1105

Merged
merged 3 commits into from
Aug 26, 2024

Conversation

cscheid
Copy link
Member

@cscheid cscheid commented Aug 24, 2024

This closes #1104.

Pull Request

Before you submit a pull request, please ensure you've completed the following che.klist

  • Ensure there is an already open and relevant GitHub issue describing the problem in detail and you've already received some indication from the maintainers that they are welcome to a contribution to fix the problem. This helps us to prevent wasting anyone's time.

  • This project uses roxygen2 for documentation. If you've made changes to documentation, run devtools::document().

  • Run devtools::check() (or, equivalently, click on Build->Check Package in the RStudio IDE) to make sure your change did not add any messages, warnings, or errors.

    • Note there is a decent chance that some tests were already failing before your changes. Just make sure you haven't introduced any new ones.
  • Ensure your code changes follow the style outlined in http://r-pkgs.had.co.nz/style.html

  • Add an entry to NEWS.md concisely describing what you changed.

  • Add unit tests in the tests/testthat directory.

I haven't done that, because I'm not sure how you're testing SCSS syntax here. Happy to do so if someone points me in the right direction.

NEWS.md Outdated
@@ -1,6 +1,7 @@
# bslib (development version)

* `navset_card_pills()`, `navset_card_underline()`, `navset_card_tabs()` fixed to now respect header/footer arguments (@tanho63, #1024)
* added terminating semicolons to declarations in `value_box.scss` and `sidebar.scss` to prevent issues with parsers that require them. (@cscheid, #1104)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* added terminating semicolons to declarations in `value_box.scss` and `sidebar.scss` to prevent issues with parsers that require them. (@cscheid, #1104)
* Added terminating semicolons to declarations in `value_box.scss` and `sidebar.scss` to prevent issues with parsers that require them. (@cscheid, #1104)

Copy link
Member

@gadenbuie gadenbuie Aug 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No offense @cscheid but I don't think this is a newsworthy change 😄

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't know your criteria, my bad!

Copy link
Collaborator

@cpsievert cpsievert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Seems ok to me, but I'll let @gadenbuie decide before merging

Copy link
Member

@gadenbuie gadenbuie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! This should have net-zero effect on anything using bslib, these semi-colons will be stripped by libsass anyway.

NEWS.md Outdated Show resolved Hide resolved
Co-authored-by: Garrick Aden-Buie <garrick@adenbuie.com>
@cpsievert cpsievert merged commit 5420b24 into rstudio:main Aug 26, 2024
11 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Some bslib SCSS causes brittle parsers to fail
3 participants