aboutsummaryrefslogtreecommitdiffstatshomepage
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
commit16ede3e649bf837494504cc2463707e031e36a4e (patch)
tree492a338034e26f2315df9a0095a5a81343f38ee8
parent164c2ced881cacd1340af5361de6bb6bf55b1b51 (diff)
downloadmandoc-16ede3e649bf837494504cc2463707e031e36a4e.tar.gz
mandoc-16ede3e649bf837494504cc2463707e031e36a4e.tar.zst
mandoc-16ede3e649bf837494504cc2463707e031e36a4e.zip
Documented EOS buffered spaces and added `]'.
-rw-r--r--man.713
-rw-r--r--mandoc.c4
-rw-r--r--mdoc.716
3 files changed, 24 insertions, 9 deletions
diff --git a/man.7 b/man.7
index c8dbd900..66b819c4 100644
--- a/man.7
+++ b/man.7
@@ -1,4 +1,4 @@
-.\" $Id: man.7,v 1.70 2010/05/14 16:19:26 kristaps Exp $
+.\" $Id: man.7,v 1.71 2010/05/15 07:01:51 kristaps Exp $
.\"
.\" Copyright (c) 2009 Kristaps Dzonsons <kristaps@bsd.lv>
.\"
@@ -14,7 +14,7 @@
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: May 14 2010 $
+.Dd $Mdocdate: May 15 2010 $
.Dt MAN 7
.Os
.Sh NAME
@@ -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 adfafe84..3ade0787 100644
--- a/mandoc.c
+++ b/mandoc.c
@@ -1,4 +1,4 @@
-/* $Id: mandoc.c,v 1.14 2010/05/15 06:48:13 kristaps Exp $ */
+/* $Id: mandoc.c,v 1.15 2010/05/15 07:01:51 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -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 61190af5..d318dc42 100644
--- a/mdoc.7
+++ b/mdoc.7
@@ -1,4 +1,4 @@
-.\" $Id: mdoc.7,v 1.106 2010/05/14 17:31:25 kristaps Exp $
+.\" $Id: mdoc.7,v 1.107 2010/05/15 07:01:51 kristaps Exp $
.\"
.\" Copyright (c) 2009 Kristaps Dzonsons <kristaps@bsd.lv>
.\"
@@ -14,7 +14,7 @@
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: May 14 2010 $
+.Dd $Mdocdate: May 15 2010 $
.Dt MDOC 7
.Os
.Sh NAME
@@ -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