diff options
-rw-r--r-- | man.7 | 13 | ||||
-rw-r--r-- | mandoc.c | 4 | ||||
-rw-r--r-- | mdoc.7 | 16 |
3 files changed, 24 insertions, 9 deletions
@@ -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 @@ -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 ('.'): @@ -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 |