Skip Menu |

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

Report information
The Basics
Id: 17550
Status: resolved
Estimated: 15 min
Worked: 15 min
Priority: 0/
Queue: HTML-WikiConverter-PhpWiki

People
Owner: diberri [...] cpan.org
Requestors: jean-nicolas.gereone [...] st.com
Cc:
AdminCc:

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



Subject: <br><br> bug for the phpwiki dialect
For the conversion in the phpWiki dialect the html '<br><br>' should be converted in '%%% %%%' Now the converter make '%%%%%%' . So phpwiki desn't understand it. I've tried the conversion on the page : http://diberri.dyndns.org/html2wiki.html on 09/02/2006. So I guess the other versions have the bug too.
On Thu Feb 09 08:14:53 2006, guest wrote: Show quoted text
> For the conversion in the phpWiki dialect the html '<br><br>' should be > converted in '%%% %%%' > > Now the converter make '%%%%%%' . So phpwiki desn't understand it.
I've patched HTML::WikiConverter::PhpWiki; the fix will be available in version 0.51 of that module when it's released. For now, use the web interface (http://diberri.dyndns.org/html2wiki.html), which always uses the latest development versions of the dialect modules. I'm aware of one edge case that the bugfix doesn't handle. HTML comments wedged between line breaks will give the wrong output with comment-stripping enabled (i.e. strip_comments=>1): use Test::More tests => 1; use HTML::WikiConverter; my $wc = new HTML::WikiConverter( dialect => 'PhpWiki', strip_comments => 1 ); is( $wc->html2wiki("<br><!--comment--><br>"), "%%% %%%" ); I'll get around to fixing this later. I don't see it as terribly important as I doubt HTML comments are common in HTML destined to be converted into wiki markup. -- David Iberri
On Thu Feb 09 13:38:08 2006, DIBERRI wrote: Show quoted text
> On Thu Feb 09 08:14:53 2006, guest wrote:
> > For the conversion in the phpWiki dialect the html '<br><br>' should be > > converted in '%%% %%%' > > > > Now the converter make '%%%%%%' . So phpwiki desn't understand it.
> > I've patched HTML::WikiConverter::PhpWiki; the fix will be available in > version 0.51 of that module when it's released. For now, use the web > interface (http://diberri.dyndns.org/html2wiki.html), which always uses > the latest development versions of the dialect modules.
H::WC::PhpWiki 0.51, with fixes this bug, has been uploaded to CPAN. Thanks for the report! -- David Iberri