Skip Menu |

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

Report information
The Basics
Id: 27159
Status: rejected
Priority: 0/
Queue: HTML-WikiConverter-MediaWiki

People
Owner: diberri [...] cpan.org
Requestors: PERREAULT.F4 [...] forces.gc.ca
Cc:
AdminCc:

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



Subject: <a> tag bug with MediaWiki dialect
Date: Wed, 16 May 2007 13:44:22 -0400
To: <bug-HTML-WikiConverter-MediaWiki [...] rt.cpan.org>
From: <PERREAULT.F4 [...] forces.gc.ca>
Hi, Just want to report what I think is a minor bug with the latest version (0.61) of your HTML::WikiConverter. It is also reproducible on your website which seems to be using a development version 0.62 . Scenario: Converting HTML to Wiki using the MediaWiki dialect Test case : Using your website ( http://diberri.dyndns.org/wikipedia/html2wiki/index.html), input the following html code: This is a link to a url : <a href="http://www.google.com">Google</a> This is a link to a file : <a href="myLocalFile.txt">File</a> Results : The Google link gets translated to This is a link to a url : [http://www.google.com Google] ...which is fine, but the second line gets translated to This is a link to a file : [myLocalFile.txt File] ...which should look like : This is a link to a file : [[myLocalFile.txt|File]] (two brackets surrounding the link and a vertical pipe between the link and its desired textual representation) Thanks a lot for your tool! Some days you're the bug. Some days you're the windshield. Show quoted text
______________________________________________ Francis Perreault, ing. Applications Software Specialist CF-18 System Engineering Support Group (450) 476-4628 CAE Inc. www.cae.com
From: DIBERRI [...] cpan.org
Show quoted text
> This is a link to a url : <a href="http://www.google.com">Google</a> > This is a link to a file : <a href="myLocalFile.txt">File</a> > > Results : The Google link gets translated to > This is a link to a url : [http://www.google.com Google] > ...which is fine, but the second line gets translated to > This is a link to a file : [myLocalFile.txt File] > ...which should look like : > This is a link to a file : [[myLocalFile.txt|File]] > (two brackets surrounding the link and a vertical pipe between the > link and its desired textual representation)
This isn't a bug. H::WC just needs a way to know what links are internal and which are external. Pass it both a base_uri and a wiki_uri parameter. Cheers, Dave