Tika
  1. Tika
  2. TIKA-889

XHTMLContentHandler wont emit newline when html element matches ENDLINE set

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: None
    • Fix Version/s: 1.3
    • Component/s: parser
    • Labels:
      None

      Description

      XHTMLContentHandler.endElement checks if the element is in the ENDLINE set to see if it should emit a newline. The html elements in ENDLINE are all lower case, but the HtmlParser class uses the XHTMLDowngradeHandler handler to upper case all html elements. This means that none of the html elements in the web page will match the elements in the ENDLINE set.

      This also is a problem with the INDENT set as well

        Activity

        John Conwell created issue -
        Ken Krugler made changes -
        Field Original Value New Value
        Assignee Ken Krugler [ kkrugler ]
        Chris A. Mattmann made changes -
        Component/s parser [ 12312047 ]
        Ken Krugler made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 1.3 [ 12321647 ]
        Resolution Cannot Reproduce [ 5 ]

          People

          • Assignee:
            Ken Krugler
            Reporter:
            John Conwell
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development