Class HTMLNewLineHandler

java.lang.Object
com.itextpdf.text.xml.simpleparser.handler.HTMLNewLineHandler
All Implemented Interfaces:
NewLineHandler

public class HTMLNewLineHandler extends Object implements NewLineHandler
This NewLineHandler returns true on the tags p, blockqouteand br
  • Field Details

    • newLineTags

      private final Set<String> newLineTags
  • Constructor Details

    • HTMLNewLineHandler

      public HTMLNewLineHandler()
      Default constructor
      Since:
      5.0.6
  • Method Details

    • isNewLineTag

      public boolean isNewLineTag(String tag)
      Specified by:
      isNewLineTag in interface NewLineHandler
      Parameters:
      tag - the tag to check if after this one a new line should be in a document
      Returns:
      true in case a new line should be added.