> Since geshi escapes stuff HTMLtokenizer won't realize it shouldn't add
> <p>s and <br>s since <div class="geshicode"> isn't treated as a block
> element. Changing GESHI_HEADER_HTML into GESHI_HEADER_PRE will solve
> this. However that might break some users css. Ideas?

The problem is that autop is injecting paragraph markers around the  
CDATA block. I haven't had a chance to fix it yet.

$ echo 'echo Format::autop("<div>\n<![CDATA[\nfoo\n]]>\n</div>");' |  
heval
<div><p><![CDATA[
foo
]]><br></div></p>

If you need an immediate short-term (but backward-compatible)  
solution, just don't put a break between the div and the CDATA:

$ echo 'echo Format::autop("<div><![CDATA[\nfoo\n]]></div>");' | heval
<div><![CDATA[
foo
]]></div>


I've added tests for these in r3469.

S


--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at http://groups.google.com/group/habari-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to