-
-
Notifications
You must be signed in to change notification settings - Fork 82
Open
Labels
good first issueIssue that seems easy to resolve and is likely a good candidate for contributors new to projectIssue that seems easy to resolve and is likely a good candidate for contributors new to project
Description
Sometimes it is useful to also indent attributes within an element. For that org.codehaus.stag2.writeSpace(String) should be used. Unfortunately that will always close any open start tags so it cannot be used to indent attributes as internally it calls writeText (
| writeRaw(text); |
writeRaw(String) as this prevents it being used for indenting attributes. Any subsequent calls of writeAttribute(...) lead to exception
javax.xml.stream.XMLStreamException: Trying to write an attribute when there is no open start element.
at com.ctc.wstx.sw.BaseStreamWriter.throwOutputError(BaseStreamWriter.java:1589)
at com.ctc.wstx.sw.SimpleNsStreamWriter.writeAttribute(SimpleNsStreamWriter.java:73)
at ...
Metadata
Metadata
Assignees
Labels
good first issueIssue that seems easy to resolve and is likely a good candidate for contributors new to projectIssue that seems easy to resolve and is likely a good candidate for contributors new to project