Skip Menu |

This queue is for tickets about the HTML-WikiConverter CPAN distribution.

Report information
The Basics
Id: 12393
Status: resolved
Worked: 5 min
Priority: 0/
Queue: HTML-WikiConverter

People
Owner: diberri [...] cpan.org
Requestors: nachtigall [...] web.de
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: (no value)



Subject: add a <span> parent tag to html source
I'm using the web-interface at http://diberri.dyndns.org/html2wiki.html If this is the source (without the "): " <a href="http://google.com">GOOGLE</a><br/> NewLine " then it parses to this html tree: <html> <head> </head> <body> <p><a href="http://google.com"><~text text="GOOGLE"></~text></a><br> </body> </html> You see the "NewLine" is missing. Simple solution would be to embed the source into a <span> like this: " <span> <a href="http://google.com">GOOGLE</a><br/> NewLine </span> " The span is removed from the wiki-syntax later anyway, so I thinkk your tool could handle this. (you can even reproduce this with "http://google.com"<br/>NewLine", ie this seems to be a generic problem whenever a parent tag is missing)
I've actually known about this for a while, and was hoping people would circumvent the problem by simply wrapping their "HTML" in &lt;html&gt; and &lt;/html&gt;. (I'm not using span tags because there's an off chance that a wiki dialect might somehow give span tags special treatment, while an html tag is almost guaranteed to be ignored by wiki dialects.) I've added a 'wrap_in_html' option to new(), which instructs html2wiki() to do this prior to converting to wiki markup. (The demo web interface turns 'wrap_in_html' on by default.)