Table of Contents

Enum PlainTextParagraphMode

Namespace
DocWright.Formats.Text
Assembly
DocWright.Formats.Text.dll

How a plain-text file's lines become paragraphs.

public enum PlainTextParagraphMode

Fields

LinePerParagraph = 0

Every line is its own paragraph. The default, because it is the only mode that cannot be wrong: it makes no guess about the author's intent and no two source files that differ produce the same document.

BlankLineSeparated = 1

A blank line separates paragraphs; the lines between become one paragraph, joined by line breaks so the original line structure survives.

Reflow = 2

A blank line separates paragraphs and the lines between are joined into flowing text with a single space, as a word processor would reflow them. The most lossy mode and the most useful one for text that was wrapped at a fixed column.