From 9f3fc8d010bc092a7d01b9acb1d411ec826de808 Mon Sep 17 00:00:00 2001 From: Ali Gholami Rudi Date: Tue, 25 Nov 2014 17:15:19 +0330 Subject: [PATCH] tbl: prevent emitting requests like \fP.mk x Lines prefixed with escape sequences are not considered to be requests in neatroff or groff, like: \f1.sp 5 --- tbl/t8.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tbl/t8.c b/tbl/t8.c index 9281da2..89266d8 100644 --- a/tbl/t8.c +++ b/tbl/t8.c @@ -320,7 +320,8 @@ funnies(int stl, int lin) } fprintf(tabout, ".in +\\n(%du\n", SIND); fn = font[c][stynum[stl]]; - putfont(fn); + if (*fn) + fprintf(tabout, ".ft %s\n", fn); pl = prev(stl); if (stl > 0 && pl >= 0 && vspen(table[pl][c].col)) { fprintf(tabout, ".sp |\\n(^%cu\n", 'a' + c); @@ -335,8 +336,8 @@ funnies(int stl, int lin) } fprintf(tabout, ".%c+\n", s); fprintf(tabout, ".in -\\n(%du\n", SIND); - if (*fn > 0) - putfont("P"); + if (*fn) + fprintf(tabout, ".ft P\n"); fprintf(tabout, ".mk %d\n", S2); fprintf(tabout, ".if \\n(%d>\\n(%d .nr %d \\n(%d\n", S2, S1, S1, S2); } -- 2.11.4.GIT