Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.2.3

Bug #16523 Problem with headings when transforming from Mediawiki to Tikiwiki
Submitted: 2009-08-15 02:12 UTC
From: rodrigosprimo Assigned:
Status: Open Package: Text_Wiki (version CVS)
PHP Version: 5.2.5 OS: Linux
Roadmaps: (Not assigned)    
Subscription  


 [2009-08-15 02:12 UTC] rodrigosprimo (Rodrigo Sampaio Primo)
Description: ------------ There is a issue with headings and newline when transforming Mediawiki syntax to Tikiwiki. In some cases (as the one used in the test script) the output text will have missing and unexpected newlines before and after headings. I think the problem is on the parser but I'm not sure and it might be a problem both in the parser and in the render. For me it is not clear when the parser should consider a block of text as a newline, as a paragraph or as a heading. This is why I'm not sure how to fix this problem. Test script: --------------- == heading == some paragraph with NO newline between it and the heading == heading == some paragraph with newline between it and the heading == heading == some paragraph with NO newline between it and the heading == heading == some paragraph with NO newline between it and the heading Expected result: ---------------- !!heading some paragraph with NO newline between it and the heading !!heading some paragraph with newline between it and the heading !!heading some paragraph with NO newline between it and the heading !!heading some paragraph with NO newline between it and the heading Actual result: -------------- !!heading some paragraph with NO newline between it and the heading !!heading some paragraph with newline between it and the heading !!heading some paragraph with NO newline between it and the heading !!heading some paragraph with NO newline between it and the heading

Comments