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
Hello Giuseppe, I'm making a wordpress theme that uses Foil, I see a difference on the output when using the get_template_part() and $this->insert() or $this->section() or similar; it's like if the new lines at the end of each section/part gets deleted:
The space (or newline) between closing head and body is deleted or if is a closing tag –which I like to have on its own line– merges with the preceding line, so it changes a little bit the expected result. I know is not a critical thing but I'd like to have the same behavior than the wordpress function.
Checking the source I saw that a workaround might be to add the newline in doRender()method of the Engine class:
Hello Giuseppe, I'm making a wordpress theme that uses Foil, I see a difference on the output when using the
get_template_part()
and$this->insert()
or$this->section()
or similar; it's like if the new lines at the end of each section/part gets deleted:For example, this:
Outputs:
The space (or newline) between closing head and body is deleted or if is a closing tag –which I like to have on its own line– merges with the preceding line, so it changes a little bit the expected result. I know is not a critical thing but I'd like to have the same behavior than the wordpress function.
Checking the source I saw that a workaround might be to add the newline in
doRender()
method of the Engine class:What you think?
The text was updated successfully, but these errors were encountered: