-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
whitespace fix (space after dash before txid link)
- Loading branch information
Showing
1 changed file
with
1 addition
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
abccbcc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I personally like using
= ' '
in a standalone line or sometimes
to get an explicit space with pug. Some editors automatically remove trailing line spaces, including the one I'm using, which was driving me crazy (I had to carefullygit add -p
to avoid adding space changes all over the place) until I found where to turn this off >_< It's also hard to notice that the spaces are there by looking at the code.There's an overview of some other possible solutions for for adding explicit spaces at pugjs/pug#905 (comment)
abccbcc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another option not mentioned in that comment is
#{' '}
at the end of line.abccbcc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you'd like, you could use this to change the trailing spaces into
s:abccbcc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, thanks for the background here...good to know. In this case it was just fixing a visual regression. In general, no strong opinions about the issue, but I do appreciate the greater explicitness of both of your solutions and will avoid end-of-line spaces going forward.