Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.5.6
-
None
-
Windows Vista x64
Description
MarkupBuilder seems to become confused if yield / yieldUnescaped calls and empty element are mixed within a single tag. All lines from that tag up to the end are 1 step less idented than they should be.
Example Groovlet:
def html = new groovy.xml.MarkupBuilder() html.html { head { title ("test") } body { p { yield "Some Text" br() yield "Another Text" } } }
The output. You can see that there should be more whitespace before </p> and </body>.
<html> <head> <title>test</title> </head> <body> <p>Some Text<br />Another Text </p> </body> </html>