Woodstox

Configurable behavior for space before closing empty elements

Details

  • Type: Wish Wish
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Number of attachments :
    0

Description

Woodstox adds a space before closing empty elements (e.g. <foo />). Would be nice if this could be disabled (<foo/>).

Activity

Hide
Tatu Saloranta added a comment -

Sounds reasonable. Will add for 4.0.

Show
Tatu Saloranta added a comment - Sounds reasonable. Will add for 4.0.
Hide
Tatu Saloranta added a comment -

Added property WstxOutputProperties.P_ADD_SPACE_AFTER_EMPTY_ELEM, implemented it, added unit test and verified that it appears to work.

Will be included in 4.0 release.

Show
Tatu Saloranta added a comment - Added property WstxOutputProperties.P_ADD_SPACE_AFTER_EMPTY_ELEM, implemented it, added unit test and verified that it appears to work. Will be included in 4.0 release.
Hide
Tatu Saloranta added a comment -

Included in 3.9.0 release.

Show
Tatu Saloranta added a comment - Included in 3.9.0 release.
Hide
Tatu Saloranta added a comment -

Interesting – turns out that this feature is disabled by default for 4.0 and above. This was not intentional, but given that it has been released, it is the new baseline. So extra white spaces will be mostly gone (if not explicitly enabled).

Show
Tatu Saloranta added a comment - Interesting – turns out that this feature is disabled by default for 4.0 and above. This was not intentional, but given that it has been released, it is the new baseline. So extra white spaces will be mostly gone (if not explicitly enabled).

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: