Skip to content

Formatted text will lose necessary spaces on new lines #1

Description

@martin-braun

Hi, thanks for the little tool. I like it so far, but there is a bug in text that was formatted to be 80 characters wide.

Say you have a paragraph that
is formatted for a specific
length, so it has new line
characters without a space at
the end, like this text ...

it will convert the text to:

Say you have a paragraph thatis formatted for a specificlength, so it has new linecharacters without a space atthe end, like this text ...

md2bbcode forgets to insert spaces in replacement of single new lines. Ofc, it must not insert spaces for double new lines, these are paragraphs. It also must not convert new lines to spaces in code blocks for obvious reasons.

Maybe this can be fixed. Thanks so much! :)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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