Remove extra blank lines from page.njk output#1005
Conversation
|
Thanks for this. Yes please update the expected files here, otherwise I will still have to do something like |
By updating tests I meant doing what 2ad11f5 does exactly actually 😅 ( made this pr before it ) |
I see, I mistakenly assumed that this PR was removing additional blank lines generated by the html output. If you are interested you can rework this PR to focus on that end goal instead. So for example, given the following html output below, the blank lines at line 22 and 25 can actually be removed, if you replace markbind/test/functional/test_site_algolia_plugin/expected/index.html Lines 16 to 29 in 2ad11f5 The blank line at line 20 is also not supposed to be there, some html outputs do not have that blank line. |
eeb0970 to
7141ad5
Compare
Misunderstood your intention as well. Thanks for the suggestion! I've updated the test files and trimmed a few more blank lines. |
7141ad5 to
a6f09c0
Compare
|
Rebased on latest, no changes |
What is the purpose of this pull request? (put "X" next to an item, remove the rest)
• [x] Others
What is the rationale for this request?
Remove extra blank lines from page.njk output
What changes did you make? (Give an overview)
Removed blank lines from page.njk output using nunjucks's whitespace trimming
{%-Is there anything you'd like reviewers to focus on?
na
Testing instructions:
npm run testshould passProposed commit message: (wrap lines at 72 characters)
Remove extra blank lines from page.njk output