Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-1610

Preserve whitespace in <code> sections in the Changes.html generated from CHANGES.txt by changes2html.pl

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 2.9
    • Fix Version/s: 2.9
    • Component/s: general/website
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      The Trunk section of CHANGES.txt sports use of a new feature: <code> sections, for the two mentions of LUCENE-1575.

      This looks fine in the text rendering, but looks crappy in the HTML version, since changes2html.pl escapes HTML metacharacters to appear as-is in the HTML rendering, but the newlines in the code are converted to a single space.

      I think this should be fixed by modifying changes2html.pl to convert <code> and </code> into (unescaped) <code><pre> and </pre></code>, respectively, since just passing through <code> and </code>, without </?pre>, while changing the font to monospaced (nice), still collapses whitespace (not nice).

      See the java-dev thread that spawned this issue here: http://www.nabble.com/CHANGES.txt-td23102627.html

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              steve_rowe Steve Rowe
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: