summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-05-15 07:01:51 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-05-15 07:01:51 +0000
commit4f14d32dcd946fddf1df23d122e4f4d6248e6bf9 (patch)
tree84cbffb2695342695e120169b852ba1c42677ddb
parent63c50855905c3409df3d977f38d5877dc487bde6 (diff)
downloadmandoc-4f14d32dcd946fddf1df23d122e4f4d6248e6bf9.tar.gz
Documented EOS buffered spaces and added `]'.
-rw-r--r--man.79
-rw-r--r--mandoc.c2
-rw-r--r--mdoc.712
3 files changed, 19 insertions, 4 deletions
diff --git a/man.7 b/man.7
index 6fdcf803..b91bd6c7 100644
--- a/man.7
+++ b/man.7
@@ -216,8 +216,13 @@ literal text.
When composing a manual, make sure that your sentences end at the end of
a line.
By doing so, front-ends will be able to apply the proper amount of
-spacing after the end of sentence (unescaped) period, exclamation, or question
-mark.
+spacing after the end of sentence (unescaped) period, exclamation mark,
+or question mark followed by zero or more non-sentence closing
+delimiters (
+.Ns Sq \&) ,
+.Sq \&] ,
+.Sq \&' ,
+.Sq \&" ) .
.Sh MANUAL STRUCTURE
Each
.Nm
diff --git a/mandoc.c b/mandoc.c
index 5ed306c6..43ccfb21 100644
--- a/mandoc.c
+++ b/mandoc.c
@@ -320,6 +320,8 @@ mandoc_eos(const char *p, size_t sz)
/* FALLTHROUGH */
case ('\''):
/* FALLTHROUGH */
+ case (']'):
+ /* FALLTHROUGH */
case (')'):
break;
case ('.'):
diff --git a/mdoc.7 b/mdoc.7
index 82472a3a..70fccf82 100644
--- a/mdoc.7
+++ b/mdoc.7
@@ -301,10 +301,18 @@ When composing a manual, make sure that your sentences end at the end of
a line.
By doing so, front-ends will be able to apply the proper amount of
spacing after the end of sentence (unescaped) period, exclamation mark,
-or question mark.
+or question mark followed by zero or more non-sentence closing
+delimiters (
+.Ns Sq \&) ,
+.Sq \&] ,
+.Sq \&' ,
+.Sq \&" ) .
.Pp
The proper spacing is also intelligently preserved if a sentence ends at
-the boundary of a macro line.
+the boundary of a macro line, e.g.,
+.Pp
+.D1 \&Xr mandoc 1 \.
+.D1 \&Fl T \&Ns \&Cm ascii \.
.Sh MANUAL STRUCTURE
A well-formed
.Nm