Uploaded image for project: 'Forrest (Retired)'
  1. Forrest (Retired)
  2. FOR-680

The jspwiki parser renders nested lists invalid

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.7, 0.8
    • None
    • Plugin: input.wiki
    • None
    • MacOS X 10.4.2, Java 1.4.2
    • Patch available

    Description

      Lists within lists are parsed into an invalid structure. The following input:

      !!!Test title

      Test list:

      * li1
      * li2
      ** li2a
      ** li2b
      ** li2c
      * li3

      comes out as the following xml:

      <?xml version="1.0" encoding="ISO-8859-1"?>
      <!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V1.1//EN" "document-v11.dtd">
      <document>
      <header>
      <title>test</title>
      </header>
      <body>
      <section>
      <title>Test title</title>
      <p>Test list: </p>
        <ul>
          <li>li1 </li>
          <li>li2 </li>
            <ul>
              <li>li2a </li>
              <li>li2b </li>
              <li>li2c </li>
            </ul>
          <li>li3 </li>
        </ul>
      </section>
      </body>
      </document>

      Note that the inner <ul> is not within the preceding <li> as required by the dtd, but inserted between to <li>s.

      Attachments

        1. updated-wiki-patch.txt
          3 kB
          Sjur N. Moshagen
        2. wiki-update-diff.txt
          3 kB
          Sjur N. Moshagen

        Activity

          People

            rgardler Ross Gardler
            moshagen Sjur N. Moshagen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: