Skip to content

Xml.serialize stripComments parameter doesn't work #183

Closed
@olafos

Description

@olafos

stripComments parameter in Utility.serialize is ignored due to unfortunate pattern matching expression:

      x match {
        case c: Comment if !stripComments => c buildString sb
        case s: SpecialNode               => s buildString sb
      ...

since Comment is also a SpecialNode the second pattern is applied after the first one doesn't match.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions