Community
Participate
Working Groups
Build Identifier: mylyn-wikitext-standalone-3.5.0.I20101110-1300 In a table with two columns text is dropped when converting from mediawiki to xsl-fo if there is empty lines in between the text. Reproducible: Always Steps to Reproduce: 1.Make a Mediawikipage with a table like this: {| |- | width="200px" valign="top"| '''Left coloumn text''' | [[Image:Space.gif]] |- | [[Image:Space.gif]] | some text in a long line or something '''New text after empty line gets dropped''' line 1 line 2 ---- |- | width="200px" valign="top"| '''item 2''' | [[Image:Space.gif]] |- | [[Image:Space.gif]] | '''Some bold text''' Text after empty line gets dropped |} 2.Run conversion from ant with <wikitext-to-xslfo markupLanguage="MediaWiki" showExternalLinks="false" sourceEncoding="UTF-8"> <fileset includes="file.mediawiki"/> </wikitext-to-xslfo> 3.Resultinf
... 3. Result is that lines after empty lines is dropped in xsl-fo files.
Created attachment 184417 [details] patch that adds a simple unit test that reproduces the problem thanks for the bug. Feel free to contribute a patch that fixes the issue. I've attached a unit test and a mylyn context for the relevant code.
Created attachment 184418 [details] mylyn/context/zip
This bug is fixed. I assume that my modification on table block solved also this problem: bug 381912: [MediaWiki] support for nested blocks in table cells. bc. <target name="to-eclipse-help" description="Converting to Eclipse Help" > <mediawiki-to-eclipse-help wikiBaseUrl="http://sablokesto.wikia.com/" validate="true" failOnValidationError="true" prependImagePrefix="images" formatOutput="true" defaultAbsoluteLinkTarget="doc_external" dest="${dist}" title="Wiki Test" generateUnifiedToc="false"> <path name="Page331515" title="Page" generateToc="true"/> </mediawiki-to-eclipse-help> </target> Successfully tested with: * org.eclipse.mylyn.wikitext.core_1.8.0.I20120907-2057.jar * org.eclipse.mylyn.wikitext.mediawiki.core_1.8.0.I20120907-2057.jar In my opinion, this bug can be closed. Should the proposed Unit Test be added to the suite? I have it in my local repository, I can push it on gerrit.
Works for me. Added previously failing test case from attachment 184418 [details] to verify.