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:
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?
This problem was due to a conflict with another plugin, namely, with the ‘Transposh’ translation plugin.
It was mainly inattentiveness on my part, which prevented me from discovering this problem until recently. Another reason for which I had not discovered it, was the fact that it never became obvious in my Editing View, not even in the fancy WYSIWYG panel, because no assumption existed that the default-language version of what I was writing there, should be submitted for translation.
And just today, when I discovered this malfunction, I had tried to remedy it with your plugin, which was unable to do so.
Your plugin works fine, and can make my code-blocks look much fancier than they would have looked before, on the assumption that anybody had been able to read them before. 🙂
- The topic ‘Pre Tags do not preserve line-breaks.’ is closed to new replies.