i am unable to add linebreaks within fences with grav v1.7.18.
It shows in the preview mode from editor but not on page. Tried with different Themes like Typhoon (licensed), Antimatter and Quark. I tried also with adding two spaces after every line…
If its important, i run grav with builtin symfony webserver.
In the case of HTML, whitespace is largely ignored — whitespace in between words is treated as a single character, and whitespace at the start and end of elements and outside elements is ignored.
The <pre>HTML element represents preformatted text which is to be presented exactly as written in the HTML file. The text is typically rendered using a non-proportional, or "monospaced, font. Whitespace inside this element is displayed as written.
A single line of HTML code should therefor not present any issues, except for preformatted code blocks.
What is the css for code showing in the developer console of the browser? Some values like ‘initial’, ‘normal’, no-wrap’ will ignore newlines.
Thanks for the help, i looked in the css files but not found anything you mentioned…
but i installed a new grav setup, this time from a tar.gz tarball and there it works. The old install was a setup from zip… not sure if it has anything todo with this… but for now it seems to work with the new setup…
on a third install i reinstalled grav from *1. again via the zip file and fresh, and there it is working now too…
so i think it has todo with plugins or themes i have tried in the meantime? i can try to install the plugins and themes like in my first install to reproduce the issue… if i can i will report back.
I had the same issue as you describe, and found it was related to " Automagic Images v1.0.5" plugin. I changed to a different plugin, “Resize Images v0.2.2”.