Page 1 of 1
<br> and <p> tags showing in code
Posted: Fri Apr 20, 2007 4:24 pm
by TKS
Not sure if this is a bug for everyone by default...
http://linux-blog.org/index.php?/archiv ... l#extended
I've got those tags showing in code even when I have code not set to convert new lines to <br /> with the Markup: NL2BR event plugin. It's also doing this for <p> tags as well.
Anyone know how I can fix this problem? Is this problem widespread or is it just me?
Re: <br> and <p> tags showing in code
Posted: Fri Apr 20, 2007 5:06 pm
by garvinhicking
Hi!
What do you mean with "even when I have code not set to convert..."?
The nl2br plugin does that, because HTML-tags within
Code: Select all
BBCode tags get converted into HTML entities. So you'd need to disable the nl2br plugin for postings where you want to use [code].
Since [code] is a BBCode tag and not a HTML tag, you cannot put it into the nl2br plugin configuration for exlcuded tags, this will not work.
You might be able to solve it if you put the BBCode plugin AFTER the nl2br plugin?
Regards,
Garvin
Posted: Fri Apr 20, 2007 5:23 pm
by TKS
I tried putting it after but that didn't work.
If I remove the nl2br plugin, will my previous entries become messed up?
Posted: Mon Apr 23, 2007 7:33 pm
by judebert
Yes, anything that depends on nl2br for its line breaks will be run together into a single paragraph. Reinstalling nl2br will fix it, though; the entries themselves won't change. nl2br is applied during output, and doesn't modify the entry itself.
It's weird that it only shows up in one of the code blocks. Why is that? Are you sure it's not actually in the entry?
Posted: Mon Apr 23, 2007 8:06 pm
by TKS
yeah, I'm sure.
I went into the entry itself and looked and things are ok using the WYSIWYG editor...perhaps I should try it without for this entry? Not sure...I'll give uninstalling and re-installing it a go though.
Posted: Mon Apr 23, 2007 8:13 pm
by TKS
I've fixed it for now by breaking the lines up into two distinct code tags.
However, this is still odd...are there any other ways of posting code into an entry besides BBCODE tags with the BBCODE plugin?
Posted: Mon Apr 23, 2007 8:25 pm
by judebert
I've always just used the <code> or <pre> HTML tags. Of course, I don't have nl2br enabled for entries, so this might not help you...
Posted: Tue Jun 12, 2007 6:17 pm
by TKS
I'm thinking about removing that plugin but am concerned about what it will do to my entries...do you think it will have adverse effects on them?