Skip to content

Newline or Not To Newline -- what's best for explanatory source text? #10

Open
@psherman42

Description

@psherman42

For consistent look and feel across all .adoc source files, is it best to keep each line short, entering hard-return newlines at horizontal character position 72 like in the old days with punch cards; or let lines run and wrap freely, where newline serves as indicator of new paragraphs.

In favor of the former, short source lines are very easy to read, without horizontal scrolling, on very simple browers and CLI screens using, for example, vi(m).

In case of the latter, it makes commenting-out a block very easy: only one comment character is needed at the beginning of the (very long) line.

The latter, long-line style, also favors document translation and localisation ease. The line above (or below) can be the un-translated source phrase easily. It makes very clear the precise basis and nuance for the particular target/translation phrase, and traceable point of reference. For example, with Thai, assuming '%' is the comment symbol,
%Sometimes life is too sharp.
บางเวลาชีวิตก็ทารูณโหดร้ายเกินไป
Because there are no spaces between words in Thai, artificially putting spaces in the source text is awkward, at best; and mis-leading (or complete meaning changing) at worst.

Whichever style is preferred -- max-line-length with carriage returns or freely flowing sentences or paragraphs -- we might want to impose document stylistic suggestions for the .adoc template and stick with them.

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