Uploaded image for project: 'Velocity'
  1. Velocity
  2. VELOCITY-875

SimpleNode method literal() repeats last character

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0
    • Component/s: None
    • Labels:
      None

      Description

      Method org.apache.velocity.runtime.parser.node.SimpleNode#literal repeats the last character.

      e.g. having a template as
      <script>
      ....
      </script>

      and having
      Template tpl = velocity.getTemplate(...);
      System.out.println(((SimpleNode)tpl.getData()).literal())

      will print
      <script>
      ....
      </script>>

        Attachments

          Activity

            People

            • Assignee:
              cbrisson Claude Brisson
              Reporter:
              pbaris Panos Bariamis
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: