Skip Menu |
 

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

Report information
The Basics
Id: 40882
Status: open
Priority: 0/
Queue: HTML-WikiConverter-MediaWiki

People
Owner: diberri [...] cpan.org
Requestors: dan.bolser [...] gmail.com
Cc:
AdminCc:

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



MIME-Version: 1.0
X-Spam-Status: No, hits=0.0 required=8.0 tests=DK_SIGNED,HTML_MESSAGE,SPF_PASS
X-Virus-Checked: Checked by ClamAV on 16.mx.develooper.com
Content-Type: multipart/alternative; boundary="----=_Part_3088_32978102.1226567951668"
Received: from la.mx.develooper.com (x1.develooper.com [63.251.223.170]) by diesel.bestpractical.com (Postfix) with SMTP id 1D2574D809D for <bug-html-wikiconverter-mediawiki [...] rt.cpan.org>; Thu, 13 Nov 2008 04:19:18 -0500 (EST)
Received: (qmail 15207 invoked by uid 103); 13 Nov 2008 09:19:17 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 13 Nov 2008 09:19:17 -0000
Received: from rv-out-0506.google.com (HELO rv-out-0506.google.com) (209.85.198.236) by 16.mx.develooper.com (qpsmtpd/0.43rc1) with ESMTP; Thu, 13 Nov 2008 01:19:15 -0800
Received: by rv-out-0506.google.com with SMTP id g37so800270rvb.33 for <bug-html-wikiconverter-mediawiki [...] rt.cpan.org>; Thu, 13 Nov 2008 01:19:11 -0800 (PST)
Received: by 10.141.114.19 with SMTP id r19mr5378673rvm.135.1226567951669; Thu, 13 Nov 2008 01:19:11 -0800 (PST)
Received: by 10.141.83.18 with HTTP; Thu, 13 Nov 2008 01:19:11 -0800 (PST)
Delivered-To: cpan-bug+html-wikiconverter-mediawiki [...] diesel.bestpractical.com
Subject: Handling of <BR>'s?
Return-Path: <dan.bolser [...] gmail.com>
Domainkey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=dWOaaURyiABitwyxUO0VVCVPbGezPlGugOEwOmkz63xRcZveg4jYgtfbnV9lGbejXZ CfC/69do/b78b0c+M+0pkZFUzKx/8/tJuE+TXKg/ZgScQ/RDKck+94zvNGnNGqsTFX+0 Pll38NxBTUvGSDuFO4N7vSE6lfnP5ybzSq2po=
X-Original-To: bug-html-wikiconverter-mediawiki [...] rt.cpan.org
X-Spam-Check-BY: 16.mx.develooper.com
Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type; bh=sLC5px7eWnVJY0hPg8MedFBdiCh0V/9toHsgLqxQvUY=; b=MvG2Ui7DHdRxFjYfX0uz8pSRFHGuFwpkpvINoYFnIeC8/s5ULCTSX/jhZolsCHhYUI RGrH66BwvVFrHqBvTikOwipbzqDefg71yQnDlHFtxG9kDohnBh0fFONkrwROWY7Vab3X 3NxvjWgOP741UzDOo8uRQVz7++81sBOk4Dfx8=
Date: Thu, 13 Nov 2008 09:19:11 +0000
X-Spam-Level: *
Message-Id: <2c8757af0811130119v32744af5q5385792e3de71117 [...] mail.gmail.com>
To: bug-html-wikiconverter-mediawiki [...] rt.cpan.org
From: "Dan Bolser" <dan.bolser [...] gmail.com>
Content-Length: 0
content-type: text/plain; charset="utf-8"
Content-Disposition: inline
Content-Transfer-Encoding: 7bit
X-RT-Original-Encoding: ISO-8859-1
Content-Length: 355
Download (untitled) / with headers
text/plain 355b
I noticed that <BR> tags are just passed through - I wonder if you could instead handle them just like <P>'s? I figure its trivial to pass the rules for the P tag to the BR tag, but I think this should be the default (or at least an option) rather than an 'ad-hoc' patch. Thanks for the great package! Dan. -- http://network.nature.com/profile/dan
content-type: text/html; charset="utf-8"
Content-Disposition: inline
Content-Transfer-Encoding: 7bit
X-RT-Original-Encoding: ISO-8859-1
Content-Length: 481
MIME-Version: 1.0
Subject: Add option to handle <br/> like paragraph break
In-Reply-To: <2c8757af0811130119v32744af5q5385792e3de71117 [...] mail.gmail.com>
X-Mailer: MIME-tools 5.426 (Entity 5.426)
Content-Disposition: inline
Charset: utf8
References: <2c8757af0811130119v32744af5q5385792e3de71117 [...] mail.gmail.com>
Message-Id: <rt-3.6.HEAD-5570-1226579499-1686.40882-0-0 [...] rt.cpan.org>
Content-Type: text/plain
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 1163
Download (untitled) / with headers
text/plain 1.1k
Hi Dan, On Thu Nov 13 04:20:11 2008, dan.bolser wrote: Show quoted text
> I noticed that <BR> tags are just passed through - I wonder if you could > instead handle them just like <P>'s?
Thanks for the comment. I think I know what you're talking about, but just want to clarify. The current behavior is to convert this HTML: <p>Sentence one.<br/> Sentence two.</p> into this MediaWiki markup: Sentence one.<br/> Sentence two. What you are asking for is that the same incoming HTML be converted into this MediaWiki markup: Sentence one. Sentence two. Sans "<br/>" and with the <br/> treated like a paragraph break. Is that right? Show quoted text
> I figure its trivial to pass the rules for the P tag to the BR tag, but I > think this should be the default (or at least an option) rather than an > 'ad-hoc' patch.
I'm not sure how trivial it is; unfortunately, I can't just pass the <p> rules over to the <br> tag because <p> elements are block-level elements, while <br>s are "empty" tags (they don't contain text). However, I suspect it can be done without undue difficulty. I'll see what I can do about adding an option. Thanks again for the report. Cheers, David Iberri
MIME-Version: 1.0
X-Spam-Status: No, hits=0.0 required=8.0 tests=DK_SIGNED,SPF_PASS
In-Reply-To: <rt-3.6.HEAD-5570-1226579499-1686.40882-6-0 [...] rt.cpan.org>
Content-Disposition: inline
References: <RT-Ticket-40882 [...] rt.cpan.org> <2c8757af0811130119v32744af5q5385792e3de71117 [...] mail.gmail.com> <rt-3.6.HEAD-5570-1226579499-1686.40882-6-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
X-RT-Original-Encoding: utf-8
Received: from la.mx.develooper.com (x1.develooper.com [63.251.223.170]) by diesel.bestpractical.com (Postfix) with SMTP id 9FBCA4D809D for <bug-HTML-WikiConverter-MediaWiki [...] rt.cpan.org>; Thu, 13 Nov 2008 08:41:33 -0500 (EST)
Received: (qmail 14330 invoked by uid 103); 13 Nov 2008 13:41:32 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 13 Nov 2008 13:41:32 -0000
Received: from rv-out-0506.google.com (HELO rv-out-0506.google.com) (209.85.198.236) by 16.mx.develooper.com (qpsmtpd/0.43rc1) with ESMTP; Thu, 13 Nov 2008 05:41:29 -0800
Received: by rv-out-0506.google.com with SMTP id g37so896618rvb.33 for <bug-HTML-WikiConverter-MediaWiki [...] rt.cpan.org>; Thu, 13 Nov 2008 05:41:26 -0800 (PST)
Received: by 10.141.168.2 with SMTP id v2mr5513357rvo.47.1226583685971; Thu, 13 Nov 2008 05:41:25 -0800 (PST)
Received: by 10.141.83.18 with HTTP; Thu, 13 Nov 2008 05:41:25 -0800 (PST)
Delivered-To: cpan-bug+HTML-WikiConverter-MediaWiki [...] diesel.bestpractical.com
Subject: Re: [rt.cpan.org #40882] Add option to handle <br/> like paragraph break
Domainkey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=QaOq9jrapsTcnk4FP4SfZ3tn1yLvTnjfSi9k3L9EeebugV8N0BXauwCubzLrHC+lrn yCrjdqrYJnqnz7QHX8a7RRIsZ3kBSlUoPcerCNsLuZ58zjYLAhLzywSKzsHg6gAGGZ2q Ishn6VCE+niofMLT4iPiLJl8zsXS5YcXcehhI=
Return-Path: <dan.bolser [...] gmail.com>
Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=Hn4hoz8FJ30hoqc9lLksUdw1yxQmEcBydniccb31JrA=; b=YZA8feNEHnjIv3A0SbQJE+xmtj1MhQN9eNFhDJAgqgCxv9LxoUAR2n1gkRe/kbvxX3 Wq86WgWucElQwuXjU96eKAoSbVK4vVN//oLHzD0owQGaq5KSNe0vKEEqrZcpfFfOXiXu 8S634YKfWbgsYnzKZQ715n0S1cJFTgKTMK738=
X-Spam-Check-BY: 16.mx.develooper.com
X-Original-To: bug-HTML-WikiConverter-MediaWiki [...] rt.cpan.org
Date: Thu, 13 Nov 2008 13:41:25 +0000
X-Spam-Level: *
Message-Id: <2c8757af0811130541y2db1daa8udfb20eb9762a8e1 [...] mail.gmail.com>
To: bug-HTML-WikiConverter-MediaWiki [...] rt.cpan.org
Content-Transfer-Encoding: 7bit
From: "Dan Bolser" <dan.bolser [...] gmail.com>
RT-Message-ID: <rt-3.6.HEAD-5560-1226583699-1324.40882-0-0 [...] rt.cpan.org>
Content-Length: 2323
Download (untitled) / with headers
text/plain 2.2k
Wow! Thanks for the speedy reply! 2008/11/13 David Iberri via RT <bug-HTML-WikiConverter-MediaWiki@rt.cpan.org>: Show quoted text
> <URL: http://rt.cpan.org/Ticket/Display.html?id=40882 > > > Hi Dan, > > On Thu Nov 13 04:20:11 2008, dan.bolser wrote:
>> I noticed that <BR> tags are just passed through - I wonder if you could >> instead handle them just like <P>'s?
> > Thanks for the comment. I think I know what you're talking about, but > just want to clarify. The current behavior is to convert this HTML: > > <p>Sentence one.<br/> > Sentence two.</p> > > into this MediaWiki markup: > > Sentence one.<br/> > Sentence two. > > What you are asking for is that the same incoming HTML be converted into > this MediaWiki markup: > > Sentence one. > > Sentence two. > > Sans "<br/>" and with the <br/> treated like a paragraph break. Is that > right?
Yeah. I just read up on the true difference between BR and P - http://wiki.answers.com/Q/What_is_the_difference_between_br_and_p_in_html But in MediaWiki I don't think that the distinction has an analogous markup. So yeah, its possible that in HTML someone would type: item one<br> item two<br> item three<br> For some reaon I like to type that (in MediaWiki) as: item one item two item three I think the result is the same... let me check... Hmm... Actually the result looks somewhat different, the former creating less whitespace between lines. Personally I don't like to see any html in my wikitext, so I would tend to use the latter (or a proper list) Show quoted text
>
>> I figure its trivial to pass the rules for the P tag to the BR tag, but I >> think this should be the default (or at least an option) rather than an >> 'ad-hoc' patch.
> > I'm not sure how trivial it is; unfortunately, I can't just pass the <p> > rules over to the <br> tag because <p> elements are block-level > elements, while <br>s are "empty" tags (they don't contain text). > However, I suspect it can be done without undue difficulty. I'll see > what I can do about adding an option. > > Thanks again for the report.
Oh, I thought it would be '$wp->rules_for_tag( "br" ) = $wp->rules_for_tag( "p" )'. I see that this issue isn't 100%, so I'll leave it up to you to decide what to do... Thank you for the great package!!! Dan. Show quoted text
> Cheers, > David Iberri >
-- http://network.nature.com/profile/dan


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.