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

Mimimize whitespace in the output markup

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.0.7
    • Fix Version/s: 5.0.8
    • Component/s: tapestry-core
    • Labels:
      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

            • Assignee:
              hlship Howard M. Lewis Ship
              Reporter:
              hlship Howard M. Lewis Ship
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: