From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from localhost (fantadrom.bsd.lv [local]) by fantadrom.bsd.lv (OpenSMTPD) with ESMTPA id fd37ae0b for ; Fri, 12 Apr 2019 04:02:18 -0500 (EST) Date: Fri, 12 Apr 2019 04:02:18 -0500 (EST) X-Mailinglist: mandoc-source Reply-To: source@mandoc.bsd.lv MIME-Version: 1.0 From: schwarze@mandoc.bsd.lv To: source@mandoc.bsd.lv Subject: docbook2mdoc: another case of incomplete escaping: element space dot X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Message-ID: Log Message: ----------- another case of incomplete escaping: element space dot Modified Files: -------------- docbook2mdoc: macro.c Revision Data ------------- Index: macro.c =================================================================== RCS file: /home/cvs/mdocml/docbook2mdoc/macro.c,v retrieving revision 1.10 retrieving revision 1.11 diff -Lmacro.c -Lmacro.c -u -p -r1.10 -r1.11 --- macro.c +++ macro.c @@ -216,8 +216,6 @@ print_text(struct format *f, const char { switch (f->linestate) { case LINE_NEW: - if (*word == '.' || *word == '\'') - fputs("\\&", stdout); break; case LINE_TEXT: if (flags & ARG_SPACE) @@ -227,6 +225,8 @@ print_text(struct format *f, const char macro_close(f); break; } + if (f->linestate == LINE_NEW && (*word == '.' || *word == '\'')) + fputs("\\&", stdout); while (*word != '\0') { putchar(*word); if (*word++ == '\\') -- To unsubscribe send an email to source+unsubscribe@mandoc.bsd.lv