Skip to content

refactor: allow for customSheetName to be an empty string#263

Open
ckipp01 wants to merge 1 commit into
com-lihaoyi:masterfrom
ckipp01:empty
Open

refactor: allow for customSheetName to be an empty string#263
ckipp01 wants to merge 1 commit into
com-lihaoyi:masterfrom
ckipp01:empty

Conversation

@ckipp01
Copy link
Copy Markdown
Collaborator

@ckipp01 ckipp01 commented Jan 11, 2023

While you could do this before, if you had a class a and you wanted to
keep it simple and not have anything for your customSheetName you'd
end up with -a which was a bit annoying. This small change allows
users to still use this the way the were before, but now if they are
using an empty string as their customSheetName, they'll just get a
instead of -a.

Comment thread scalatags/src/scalatags/stylesheet/StyleSheet.scala Outdated
While you could do this before, if you had a class `a` and you wanted to
keep it simple and not have anything for your `customSheetName` you'd
end up with `-a` which was a bit annoying. This small change allows
users to still use this the way the were before, but now if they are
using an empty string as their `customSheetName`, they'll just get `a`
instead of `-a`.
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.

2 participants