Skip to content
This repository was archived by the owner on Jan 10, 2021. It is now read-only.
This repository was archived by the owner on Jan 10, 2021. It is now read-only.

handle multiple newlins/carriage-returns #16

@kellyredding

Description

@kellyredding

Right now we do:

.gsub(/(\r|\n)+/, Xmlss::Writer::LB)

This unintentionally prevents you from doing multiple newlines back-to-back (the +) squashes them. The goal was to not do multiple newlines for "\r\n".

We need a better regex: something that says if given either a single carriage-return/newline OR the combo.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions