On Thu, 2006-09-14 at 17:18 -0700, Cliff Wells wrote:
> I primarily blog about programming, configuring software, etc. So far
> I've found it next to impossible to not have Epoz/BitaKora mangle any
> code snippets I insert. The major problems are inserting <br /> tags
> inside the <pre> tags and eating whitespace.
>
> Problems I've had, things I've tried:
>
> 1) There is supposedly a "Preformat" item for Epoz. I don't see it.
I see that it's disabled in "bitakora_edit_js" where ever that is. I've
tried my best to locate it both in the filesystem and in the ZMI to no
avail. I assume it's in the database? Is there anyway to edit it or
simply get rid of it?
> 2) I've tried editing directly in HTML (checking the "HTML" box), not
> using Epoz and inserting <pre> tags by hand.
> 3) I modified the Epoz/__init__.py to not import Tidy (this helped a
> bit
> - it stopped inserting <br /> tags in the <pre> elements but still
> eats
> whitespace).
>
> So it looks to me as if Epoz was inserting the <br /> tags, but it
> also
> looks like Bitakora is chomping the whitespace (especially bad for
> posting Python code <wink>).
Yep, Bitakora includes its own EpozPostTidy.py which has a part that
replaces whitespace. Not a good default. I'm removing it from my
install for the time being, but I'm already hacking up so much stuff
just to make Bitakora usable that I'm starting to fear an upgrade.
Cliff