com.overzealous.remark.convert
Class Break

java.lang.Object
  extended by com.overzealous.remark.convert.AbstractNodeHandler
      extended by com.overzealous.remark.convert.Break
All Implemented Interfaces:
NodeHandler

public class Break
extends AbstractNodeHandler

Handles manual breaks (br)

Author:
Phil DeJarnett

Constructor Summary
Break()
           
 
Method Summary
 void handleNode(NodeHandler parent, Element node, DocumentConverter converter)
          Renders out forced linebreaks.
 
Methods inherited from class com.overzealous.remark.convert.AbstractNodeHandler
handleIgnoredHTMLElement, handleTextNode, prependAndRecurse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Break

public Break()
Method Detail

handleNode

public void handleNode(NodeHandler parent,
                       Element node,
                       DocumentConverter converter)
Renders out forced linebreaks. If hardwraps are enabled, then this simply prints a newline. Otherwise, it prints two spaces and a newline.

Parameters:
parent - The previous node walker, in case we just want to remove an element.
node - Node to handle
converter - Parent converter for this object.


© 2011 OverZealous Creations, LLC - BitBucket Repository