diff options
author | 2012-07-18 10:39:19 +0000 | |
---|---|---|
committer | 2012-07-18 10:39:19 +0000 | |
commit | 7a9cc4a7da8d626f4484e36248129567b2bef7f8 (patch) | |
tree | ae3e4d4a19b2ac1807bcd20c1b713bb297285bde | |
parent | 7b8f7531d27ac46d42eb5753c359472e16e72171 (diff) | |
download | mandoc-7a9cc4a7da8d626f4484e36248129567b2bef7f8.tar.gz mandoc-7a9cc4a7da8d626f4484e36248129567b2bef7f8.tar.zst mandoc-7a9cc4a7da8d626f4484e36248129567b2bef7f8.zip |
The mdoc(7) \*(Ba predefined string actually forces roman font;
that's stupid because it may break enclosing font changes,
but let's do the same for groff bug compatibility.
--> Never use \*(Ba, use just plain "|"! <--
Also, predefined strings are already expanded by the roff(7) parser,
so the mdoc(7) parser has to look for the expanded string.
OpenBSD rev. mdoc.c 1.90 and predefs.in 1.3
-rw-r--r-- | TODO | 14 | ||||
-rw-r--r-- | mdoc.c | 4 | ||||
-rw-r--r-- | predefs.in | 4 |
3 files changed, 5 insertions, 17 deletions
@@ -1,6 +1,6 @@ ************************************************************************ * Official mandoc TODO. -* $Id: TODO,v 1.137 2012/07/16 21:30:42 schwarze Exp $ +* $Id: TODO,v 1.138 2012/07/18 10:39:19 schwarze Exp $ ************************************************************************ ************************************************************************ @@ -203,11 +203,6 @@ is just "o\bo". see for example OpenBSD ksh(1) -- The characters "|" and "\*(Ba" should never be bold, - not even in the middle of a word, e.g. ".Cm b\*(Bac" in - "mknod [-m mode] name b|c major minor" - in OpenBSD ksh(1) - - A bogus .Pp between two .It must not produce a double blank line, see between -R and -r in OpenBSD rm(1), before "update" in mount(8), or in DIAGNOSTICS in init(8), or before "is always true" in ksh(1). @@ -270,13 +265,6 @@ found while talking to Chris Bennett - In man(7), the sequence - .HP - one line of regular text - .SH - should not produce two blank lines before the .SH, - see for example named-checkconf(8). - -- In man(7), the sequence .SH HEADER <blank line> .PP @@ -1,4 +1,4 @@ -/* $Id: mdoc.c,v 1.199 2012/07/16 09:51:54 schwarze Exp $ */ +/* $Id: mdoc.c,v 1.200 2012/07/18 10:39:19 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010 Ingo Schwarze <schwarze@openbsd.org> @@ -982,7 +982,7 @@ mdoc_isdelim(const char *p) if (0 == strcmp(p + 1, ".")) return(DELIM_CLOSE); - if (0 == strcmp(p + 1, "*(Ba")) + if (0 == strcmp(p + 1, "fR|\\fP")) return(DELIM_MIDDLE); return(DELIM_NONE); @@ -1,4 +1,4 @@ -/* $Id: predefs.in,v 1.3 2011/07/31 11:36:49 schwarze Exp $ */ +/* $Id: predefs.in,v 1.4 2012/07/18 10:39:19 schwarze Exp $ */ /* * Copyright (c) 2011 Kristaps Dzonsons <kristaps@bsd.lv> * @@ -26,7 +26,7 @@ */ PREDEF("Am", "&") -PREDEF("Ba", "|") +PREDEF("Ba", "\\fR|\\fP") PREDEF("Ge", "\\(>=") PREDEF("Gt", ">") PREDEF("If", "infinity") |