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

White space is stripped between localization directives.

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.0
    • Fix Version/s: 4.1.1
    • Component/s: Framework
    • Labels:
      None

      Description

      When two localization directives are separated by white space and the first directive consists of a start-end tag pair, the white space between the directives is removed. This does not occur if the first directive is an empty (self-closing) tag.

      For example, the following template markup:

      <span key="hello-key">Hello</span> <span key="world-key">World</span><br/>
      <span key="hello-key"/> <span key="world-key"/><br/>
      <span key="hello-key">Hello</span> <span key="world-key"/><br/>
      <span key="hello-key"/> <span key="world-key">World</span><br/>
      <span key="hello-key"></span> <span key="world-key"></span><br/>

      Is rendered like this:

      HelloWorld<br/>
      Hello World<br/>
      HelloWorld<br/>
      Hello World<br/>
      HelloWorld<br/>

        Attachments

          Activity

            People

            • Assignee:
              jkuhnert Jesse Kuhnert
              Reporter:
              tailwaggers Mark Reynolds
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: