groovy
  1. groovy
  2. GROOVY-5028

Add method to expand empty elements in XmlNodePrinter

    Details

    • Type: Wish Wish
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.2
    • Fix Version/s: 1.8.3, 1.9-beta-4, 1.7.11
    • Component/s: None
    • Labels:
      None
    • Number of attachments :
      0

      Description

      In groovy.util.XmlNodePrinter class there is no option to expand or not emtpy elements.

      <div></div>

      is transformed to

      <div/>

      In groovy.xml.MarkupBuilder there is such method

        Activity

        Hide
        Arek added a comment -

        There is the mistake in the title. It shoud be XmlNodePrinter instade of PrintWriter

        Show
        Arek added a comment - There is the mistake in the title. It shoud be XmlNodePrinter instade of PrintWriter
        Hide
        Paul King added a comment -

        Added, as per MarkupBuilder

        Show
        Paul King added a comment - Added, as per MarkupBuilder

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 1 hour
              1h
              Remaining:
              Remaining Estimate - 1 hour
              1h
              Logged:
              Time Spent - Not Specified
              Not Specified