Commit 1773fd36 authored by Thomas Mortagne's avatar Thomas Mortagne
Browse files

XRENDERING-661: Special symbol on its own line within list item is not...

XRENDERING-661: Special symbol on its own line within list item is not rendered correctly from XDOM to xwiki/2.1
parent 9d4e7de8
...@@ -479,6 +479,10 @@ public void endListItem() ...@@ -479,6 +479,10 @@ public void endListItem()
// Remove our stacking event listener // Remove our stacking event listener
getXWikiSyntaxListenerChain().removeListener(ListItemStackingInlineContentChainingListener.class); getXWikiSyntaxListenerChain().removeListener(ListItemStackingInlineContentChainingListener.class);
// Ensure that any not printed characters are flushed.
// TODO: Fix this better by introducing a state listener to handle escapes
getXWikiPrinter().flush();
} }
@Override @Override
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
* @version $Id$ * @version $Id$
* @since 4.5M1 * @since 4.5M1
*/ */
@RenderingTests.Scope(value = "xwiki20.specific"/*, pattern = "misc.test"*/) @RenderingTests.Scope(value = "xwiki20.specific"/*, pattern = "escaping4.test"*/)
public class XWiki20SpecificTest implements RenderingTests public class XWiki20SpecificTest implements RenderingTests
{ {
} }
.#-----------------------------------------------------
.inputexpect|xwiki/2.0
.# Test escaping of heading after a list item
.#-----------------------------------------------------
* Item
~= Test
.#-----------------------------------------------------
.expect|event/1.0
.#-----------------------------------------------------
beginDocument
beginList [BULLETED]
beginListItem
onWord [Item]
onNewLine
onSpecialSymbol [=]
onSpace
onWord [Test]
endListItem
endList [BULLETED]
endDocument
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment