Uploaded image for project: 'Tapestry'
  1. Tapestry
  2. TAPESTRY-2028

Mimimize whitespace in the output markup

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 5.0.7
    • 5.0.8
    • tapestry-core
    • None

    Description

      Tapestry (4 and 5) has traditionally honored all the white space in a template. This is for a few specific cases, such as text inside a <pre> element (who uses those?).
      This results in output documents that, due to the extra whitespace that often surrounds Tapestry components, contain large amounts of whitespace.

      In most cases, interior white space (whitespace between text characters) can be reduced to a single space, and white space just after a tag or just before a tag can be eliminated entirely.

      The Tapestry template parser should honor the xml:space attribute and use it to determine what template whitespace is relevant, and what whitespace may be minimized or eliminated.

      Attachments

        Activity

          People

            hlship Howard Lewis Ship
            hlship Howard Lewis Ship
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: