X-Git-Url: https://git.cameronkatri.com/mandoc.git/blobdiff_plain/399942b9c89420955d4228916334e0a5d499da86..79d152fe17d260ddca9686d56a71ecaa8d58ecd2:/man_macro.c diff --git a/man_macro.c b/man_macro.c index 0078f479..782f8322 100644 --- a/man_macro.c +++ b/man_macro.c @@ -1,7 +1,8 @@ -/* $Id: man_macro.c,v 1.77 2013/11/11 00:37:55 schwarze Exp $ */ +/* $Id: man_macro.c,v 1.80 2013/12/31 23:23:10 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons * Copyright (c) 2012, 2013 Ingo Schwarze + * Copyright (c) 2013 Franco Fichtner * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -431,6 +432,15 @@ in_line_eoln(MACRO_PROT_ARGS) 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))) + man->last->flags |= MAN_EOS; + /* * If no arguments are specified and this is MAN_SCOPED (i.e., * next-line scoped), then set our mode to indicate that we're