* docbook2mdoc: another case of incomplete escaping: element space dot
@ 2019-04-12 9:02 schwarze
0 siblings, 0 replies; only message in thread
From: schwarze @ 2019-04-12 9:02 UTC (permalink / raw)
To: source
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-04-12 9:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-12 9:02 docbook2mdoc: another case of incomplete escaping: element space dot schwarze
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).