summaryrefslogtreecommitdiffstats
path: root/mdoc.7
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-05-08 08:36:44 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-05-08 08:36:44 +0000
commitd0924326c0c8e754370d5d2d2142366c3a75ae70 (patch)
treef6e7eb3799bf9f4b01e6f4c70cbf361a3640630c /mdoc.7
parentc10df4f63596660b1a585dd712a0778b88ec5874 (diff)
downloadmandoc-d0924326c0c8e754370d5d2d2142366c3a75ae70.tar.gz
Strip trailing, unescaped whitespace from free-form, non-literal lines (like groff).
Diffstat (limited to 'mdoc.7')
-rw-r--r--mdoc.718
1 files changed, 4 insertions, 14 deletions
diff --git a/mdoc.7 b/mdoc.7
index 1b807efa..d9c6b757 100644
--- a/mdoc.7
+++ b/mdoc.7
@@ -181,23 +181,13 @@ and
.Sq \e*(Ba
.Pq vertical bar .
.Ss Whitespace
-In non-literal free-form lines, consecutive blocks of whitespace are
-pruned from input and added later in the output filter, if applicable:
-.Bd -literal -offset indent
-These spaces are pruned from input.
-\&.Bd \-literal
-These are not.
-\&.Ed
-.Ed
+In free-form lines, whitespace is preserved within a line; un-escaped
+trailing spaces are stripped from input (unless in a literal context).
+Blank free-form lines, which may include spaces, are only permitted
+within literal contexts.
.Pp
In macro lines, whitespace delimits arguments and is discarded. If
arguments are quoted, whitespace within the quotes is retained.
-.Pp
-Blank lines are only permitted within literal contexts, as are lines
-containing only whitespace. Tab characters are only acceptable when
-delimiting
-.Sq \&Bl \-column
-or when in a literal context.
.Ss Quotation
Macro arguments may be quoted with a double-quote to group
space-delimited terms or to retain blocks of whitespace. A quoted