diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-07-18 23:31:04 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-07-18 23:31:04 +0000 |
commit | bf7cb186e6909c3518109a75ff9c7693b43bc2f2 (patch) | |
tree | 1623b54026015ee225393dd0ffa344a6975a8120 | |
parent | a69e6330edb815641b0afad6c0073368334fece0 (diff) | |
download | mandoc-bf7cb186e6909c3518109a75ff9c7693b43bc2f2.tar.gz |
More clarity fixes in mdoc.7.
Sm/Sy argument to `Bf' fixed (schwarze@openbsd).
-rw-r--r-- | mdoc.7 | 24 | ||||
-rw-r--r-- | mdoc_validate.c | 2 |
2 files changed, 8 insertions, 18 deletions
@@ -131,11 +131,6 @@ also be text-decorated using the .Sq \ef escape followed by an indicator: B (bold), I, (italic), or P and R (Roman, or reset). This form is not recommended. -.Pp -Lastly, a standalone double-quote may be produced in a macro line by -using two consecutive double-quotes within a quoted literal. See -.Sx Quotation -for details. .\" SUB-SECTION---------------------- .Ss Whitespace In non-literal free-form lines, consecutive blocks of whitespace are @@ -162,18 +157,8 @@ or when in a literal context. Macro arguments may be quoted with a double-quote to group space-delimited terms or to retain blocks of whitespace. A quoted argument begins with a double-quote preceded by whitespace. The next -double-quote that is -.Em -preceded by a double-quote terminates the term, regardless of -surrounding whitespace. Thus, the following construction produces -.Sq "a""b" , -since, as mentioned in -.Sx Special Characters , -two consecutive double-quotes in a quoted literal produce a standalone -double-quote: -.Bd -literal -offset indent -\&.Em "a""""b" -.Ed +double-quote not pair-wise adjacent to another double-quote terminates +the literal, regardless of surrounding whitespace. .\" PARAGRAPH------------ .Pp This produces tokens @@ -471,6 +456,11 @@ file re-write .Bl -dash -compact .\" LIST-ITEM .It +In quoted literals, groff allowed pair-wise double-quotes to produce a +standalone double-quote in formatted output. This idiosyncratic +behaviour is no longer applicable. +.\" LIST-ITEM +.It The .Sq \&sp macro does not accept negative numbers. diff --git a/mdoc_validate.c b/mdoc_validate.c index 193ba09d..2c7dba22 100644 --- a/mdoc_validate.c +++ b/mdoc_validate.c @@ -862,7 +862,7 @@ post_bf(POST_ARGS) return(1); else if (0 == strcmp(p, "Li")) return(1); - else if (0 == strcmp(p, "Sm")) + else if (0 == strcmp(p, "Sy")) return(1); return(mdoc_nerr(mdoc, head, EFONT)); |