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
<!DOCTYPE html><html><head><title>Content page 1</title><scriptsrc="common-script.js"></script><scriptsrc="content-script.js"></script></head><body><header><h1>My website</h1></header><section><p>This is a paragraph from content page 1</p></section><footer><p>My footer</p><p>This is some footer content from content page 1</p></footer></body></html>
Using thymeleaf 2.1.4.RELEASE and thymeleaf-layout-dialect 1.3.1
The text was updated successfully, but these errors were encountered:
In versions prior to when this is seen, I copied only other elements. But for work done in issue #70 (released in 1.2.9), I relaxed that and copied over everything.
I might need to add some smarts to exclude copying over whitespace into whitespace, because then it just compounds, leading to this issue.
This issue affected anybody using the default 'appending' head merging strategy. If you configured Thymeleaf to use the grouping strategy or implemented your own, you'd likely not encounter this issue.
I've released a 1.3.3-SNAPSHOT version with this fix in the interim.
I noticed that, when using a decorator and overriding the head block to add resources, there are excessive newlines in the result.
I reduced the issue to a minimal example here:
Layout:
Template
Creates the following result:
It seems that three empty lines are created for every line added to the head block.
The official example, shows the same issue for me:
Using thymeleaf 2.1.4.RELEASE and thymeleaf-layout-dialect 1.3.1
The text was updated successfully, but these errors were encountered: