You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When writing a template, leaving a blank line between two elements generates an empty <div> in the resulting HTML code. This only seems to happen if the blank line contains a certain number of whitespace characters, a common scenario when using editors that auto-indent. This doesn't seem to be the desired behavior (it does not happen in the Ruby implementation of Slim).
Example:
p First Paragraph
p Second Paragraph
(note: GitHub is stripping white spaces, but that blank line between the two p elements includes 2 white spaces, preserving indentation of said elements)
When writing a template, leaving a blank line between two elements generates an empty
<div>
in the resulting HTML code. This only seems to happen if the blank line contains a certain number of whitespace characters, a common scenario when using editors that auto-indent. This doesn't seem to be the desired behavior (it does not happen in the Ruby implementation of Slim).Example:
(note: GitHub is stripping white spaces, but that blank line between the two
p
elements includes 2 white spaces, preserving indentation of said elements)Generates:
The text was updated successfully, but these errors were encountered: