org.xwiki.rendering.util
Class ParserUtils
java.lang.Object
org.xwiki.rendering.util.ParserUtils
public class ParserUtils
- extends Object
Methods for helping in parsing.
- Since:
- 1.7M1
- Version:
- $Id: d5b59ff9d210fdfa687650b56a5585bad0e47cb9 $
|
Method Summary |
void |
removeTopLevelParagraph(List<Block> blocks)
Removes any top level paragraph since for example for the following use case we don't want an extra paragraph
block: = hello {{velocity}}world{{/velocity}}. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ParserUtils
public ParserUtils()
removeTopLevelParagraph
public void removeTopLevelParagraph(List<Block> blocks)
- Removes any top level paragraph since for example for the following use case we don't want an extra paragraph
block:
= hello {{velocity}}world{{/velocity}}.
- Parameters:
blocks - the blocks to check and convert
Copyright © 2004–2014 XWiki. All rights reserved.