=================================================================== RCS file: /cvs/mandoc/man_macro.c,v retrieving revision 1.77 retrieving revision 1.78 diff -u -p -r1.77 -r1.78 --- mandoc/man_macro.c 2013/11/11 00:37:55 1.77 +++ mandoc/man_macro.c 2013/12/22 13:25:17 1.78 @@ -1,4 +1,4 @@ -/* $Id: man_macro.c,v 1.77 2013/11/11 00:37:55 schwarze Exp $ */ +/* $Id: man_macro.c,v 1.78 2013/12/22 13:25:17 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons * Copyright (c) 2012, 2013 Ingo Schwarze @@ -430,6 +430,15 @@ in_line_eoln(MACRO_PROT_ARGS) if ( ! man_word_alloc(man, line, la, p)) return(0); } + + /* + * Append MAN_EOS in case the last snipped argument + * ends with a dot, e.g. `.IR syslog (3).' + */ + + if (n != man->last && + mandoc_eos(man->last->string, strlen(man->last->string), 0)) + man->last->flags |= MAN_EOS; /* * If no arguments are specified and this is MAN_SCOPED (i.e.,