WordPress adds its own ‘p’ elements inside ‘pre
-
In a blog entry, I’m inserting xml code encoded using the WordPress Encoder Widget, inside a ‘pre’ element. For some reason, WordPress inserts ‘p’ elements after some of the lines, resulting in extra blank lines in teh listing. The placement seems to be completely random, but it’s at the same place every time.
Does anybody know why this is happening? I’m going crazy trying to put program listings inside a blog entry. I’m not completely happy about having to use the Encoder Widget to encode everything (instead of using CDATA or some other markup mechanism), but it would have been workable,. However with these blank lines in the result this is not an option either.
Regards,
Colin
- The topic ‘WordPress adds its own ‘p’ elements inside ‘pre’ is closed to new replies.