Menu

#7 Handle embedded whitespace differencing

closed
nobody
None
5
2007-01-30
2003-06-15
Phil W-S
No

It is possible to ask XMLUnit to ignore whitespace.
Unfortunately this only does string trims so any embedded
whitespace remains a difference as far as XMLUnit is
concerned.

Request: ensure that text comparisons when whitespace is
to be ignored is undertaken against
"whitespace-normalized" strings.

Discussion

  • Tim Moore

    Tim Moore - 2005-01-25

    Logged In: YES
    user_id=603511

    This would be very useful for me. I'm currently trying to
    format some pretty-printed XHTML with stuff generated by an
    XSLT transform. Line-wrapped text is calculated as different
    from non-wrapped but otherwise identical text.

     
  • Stefan Bodewig

    Stefan Bodewig - 2007-01-30

    Logged In: YES
    user_id=113148
    Originator: NO

    there now is an option to "normalize" whitespace, which replaces all whitespace chars with " " and collapses multiple consecutive whitespace chars to a single space.

     
  • Stefan Bodewig

    Stefan Bodewig - 2007-01-30
    • status: open --> closed
     

Log in to post a comment.