[Moin-user] html PRE and {{{ }}}

jdd jdd at dodin.org
Sat Dec 20 06:57:40 EST 2008


I try to fix the html->Moin converter

http://search.cpan.org/dist/HTML-WikiConverter/

(online here : http://diberri.dyndns.org/wikipedia/html2wiki/index.html)

but I have a problem with the "<pre>" tag.

html:

<table bgcolor="#e0e0e0" border="0" width="100%"><tbody><tr><td><font
color="#000000"><pre class="screen">
/boot     /dev/hda1        10 Megabytes
swap      /dev/vg00/swap   256 Megabytes
/         /dev/vg00/root     2 Gigabytes
/home     /dev/vg00/home     6 Gigabytes

         </pre></font></td></tr></tbody></table>

displays perfectly, but replacing table by "||" and <pre> by {{{ fails
because || tables sees the carriage return and refuse it.

the converter gives:

||<tablestyle="width:100%; background-color:#e0e0e0"> {{{ /boot
/dev/hda1        10 Megabytes
 swap      /dev/vg00/swap   256 Megabytes
 /         /dev/vg00/root     2 Gigabytes
 /home     /dev/vg00/home     6 Gigabytes
 }}} ||

(on this example, I could remove the table enclosure - I don't really
know why it's here, this is a HOWTO converted by jade from docbook)

any idea,

thanks
jdd

-- 
http://www.dodin.net
http://valerie.dodin.org
http://www.youtube.com/watch?v=t-eic8MSSfM




More information about the Moin-user mailing list