org.xwiki.rendering.util
Class ParserUtils

java.lang.Object
  extended by org.xwiki.rendering.util.ParserUtils

public class ParserUtils
extends Object

Methods for helping in parsing.

Since:
1.7M1
Version:
$Id$

Constructor Summary
ParserUtils()
           
 
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
 

Constructor Detail

ParserUtils

public ParserUtils()
Method Detail

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-2011 XWiki. All Rights Reserved.