Skip to content

Why does neverwrap add newlines to plain text entries? #359

Open
@ghostwords

Description

@ghostwords

Hello! I'm using po4a to facilitate translating source Markdown files in Weblate. After a bunch of trial and error, I seem to have discovered the combination of flags to disable all wrapping of messages.

However, setting the neverwrap flag seems to have introduced a curious side effect where all "Plain text" type entries got updated to include a newline character (\n) at the end of the string. (YAML Front Matter types weren't affected.) Besides having to redo translations for these "new" messages in Weblate, the extra newlines mean that unordered lists in translations are now split up into separate paragraphs, producing undesirable white space. Compare this entry to its Chinese version. [ UPDATE: I applied a workaround ]

I suppose I can work around the lists issue with another script to remove the extra newlines from any lists in the generated Markdown files. Why does "neverwrap" add newlines though? This was unexpected; all I wanted was to disable content wrapping. Thanks for any assistance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions