-
Notifications
You must be signed in to change notification settings - Fork 42
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
Line above pre tags is removed #70
Comments
I did some testing, and I think the code introduced in #68 caused this issue. |
Aww nuts. |
@Tetr4 @penibelst I have a "Mostly done" version here: jnvsor@270c3ac There's still a trailing newline in one of the tests and all my twiddling with booleans fixes one spot and makes it pop up in another. Liquid is whack-a-mole 🔨 Could you guys try it out and see what happens? |
Holy moly 😄 Just tested it, looks fine to me. |
I have 2 branches with different versions. Neither of their output is correct, but they're better than what's there now (As in over 30% faster).
Both of these changes only affect the aesthetics of the source code, and mostly around Note the differences between @Tetr4 @penibelst could you guys tell me which you prefer? The first has slightly cleaner output and the second is slightly faster, though both of them are a large readability improvement on normal mode (And performance improvement on master) |
I like the first one. Browser output looks fine and the code looks fine too. 👍 <pre>
asdf
</pre>TEST becomes <pre>
asdf
</pre>
TEST Though i am not sure if this is intended, but something is fishy there. |
Output is fishy on the first one too. Example:
Becomes
I just figured a 5% speed difference might be worth making a fishy output slightly fishier. If @penibelst agrees I'll submit a PR for the first one |
Blanklines: Revert pre changes, add testcases, fix #70
Alrighty, went with the first version and pushed a new release. Hope I got the release process right @penibelst |
Hi, super praktisches layout 👍
There seems to be an issue with lines above pre tags, when removing blanklines is enabled.
With these settings and code:
the "TEST" line gets removed.
The text was updated successfully, but these errors were encountered: