/** * {@inheritDoc} * * @see org.xwiki.rendering.listener.Listener#onEmptyLines(int) */ public void onEmptyLines(int count) { this.stack.push(new EmptyLinesBlock(count)); }
/** * @param count the number of empty lines between 2 standalone Blocks */ public EmptyLinesBlock(int count) { setEmptyLinesCount(count); }
/** * {@inheritDoc} * @see AbstractBlock#traverse(Listener) */ public void traverse(Listener listener) { listener.onEmptyLines(getEmptyLinesCount()); } }
/** * Called by wikimodel when there are 2 or more empty lines between blocks. For example the following will generate * a call to <code>onEmptyLines(2)</code>: * <p> * <code><pre> * {{macro/}} * ... empty line 1... * ... empty line 2... * {{macro/}} * </pre></code> * * @param count the number of empty lines separating the two blocks */ public void onEmptyLines(int count) { this.stack.push(new EmptyLinesBlock(count)); }