Pre Tags do not preserve line-breaks.
-
Hello.
I have discovered some problem with my WordPress blog, due to which all code-blocks which were inserted by me for reference purposes, appear on one line, even though I have wrapped each one in a pre tag.
Not really knowing what has caused this, I next installed your plugin, hoping that to use your plugin will cause the pre tags to preserve the line-breaks.
But no matter how hard I tried, I was able to get the code highlighted in many ways, with every code-block on one line. I want multiple lines of code to appear on multiple lines in the browser.
Here is a sample posting of what goes wrong:
https://dirkmittler.homeip.net/blog/archives/2598
As I said, all my code blocks are wrapped in pre blocks, yet each incorrectly displays as a one-liner. What am I doing wrong?
Dirk
- The topic ‘Pre Tags do not preserve line-breaks.’ is closed to new replies.