Groovy
  1. Groovy
  2. GROOVY-4115

StreamingMarkupBuilder should provide an option for using double quotes around attributes

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.7.1
    • Fix Version/s: 1.7.2, 1.8-beta-1
    • Component/s: None
    • Labels:
      None

      Description

      StreamingMarkupBuilder currently only uses single quotes for attributes, e.g.:

      <?xml version='1.0'?>
      <root><a a1='one'><b>3 &lt; 5</b><c a2='two'>blah</c></a></root>
      

      it would be good to support double quotes:

      <?xml version="1.0"?>
      <root><a a1="one"><b>3 &lt; 5</b><c a2="two">blah</c></a></root>
      

        Activity

        paulk@asert.com.au created issue -
        Hide
        Paul King added a comment -

        Added. Enable as follows:

        new StreamingMarkupBuilder(useDoubleQuotes: true)
        
        Show
        Paul King added a comment - Added. Enable as follows: new StreamingMarkupBuilder(useDoubleQuotes: true )
        Paul King made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 1.7.2 [ 16237 ]
        Fix Version/s 1.8-beta-1 [ 16013 ]
        Resolution Fixed [ 1 ]
        Paul King made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 13:32:57 UTC 2015 [ 1428240777691 ]
        Mark Thomas made changes -
        Workflow jira [ 12733062 ] Default workflow, editable Closed status [ 12744794 ]
        Mark Thomas made changes -
        Project Import Mon Apr 06 02:11:23 UTC 2015 [ 1428286283443 ]
        Mark Thomas made changes -
        Workflow jira [ 12967205 ] Default workflow, editable Closed status [ 12974920 ]
        Mark Thomas made changes -
        Reporter Paul King [ paulk@asert.com.au ] Paul King [ paulk ]
        Mark Thomas made changes -
        Assignee paulk_asert [ paulk_asert ] Paul King [ paulk ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        1h 16m 1 Paul King 20/Mar/10 06:51
        Resolved Resolved Closed Closed
        18d 16h 53m 1 Paul King 07/Apr/10 23:45

          People

          • Assignee:
            Paul King
            Reporter:
            Paul King
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development