groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Groff] Re: pic and macros [looks like a bug]


From: D. Jeff Dionne
Subject: [Groff] Re: pic and macros [looks like a bug]
Date: Fri, 1 Mar 2002 09:24:08 -0000

"D. Jeff Dionne" <address@hidden> said:

 
> If a (valid) pic picture is drawn from _within_ a macro, the .ll request
> stops working!  See the following example code.
..
> 
> Anyone have any ideas?

Ah, as it turns out, pic is emitting an .nf request.  I suspect when
used within a macro this is not reset properly.  A quick hack is below,
but this is surely incorrect as .fi may not have been on before the
macro is called (I checked, it causes lines to be wrapped after a pic
even if .nf was set prior).  The correct fix would seem to be looking
into fixing something other than the symptom, but this (or just putting
.fi in the macro after .PE) would seem indicated ;^)

Cheers,
J

--------
--- groff-current.orig/src/preproc/pic/troff.cc Sun Feb 17 12:05:55 2002
+++ groff-current/src/preproc/pic/troff.cc      Fri Mar  1 03:49:33 2002
@@ -302,6 +302,7 @@
     printf(".sp %.3fi+1\n", height);
   printf(".if \\n(" FILL_REG " .fi\n");
   printf(".br\n");
+  printf(".fi\n");
   printf(".nr " EQN_NO_EXTRA_SPACE_REG " 0\n");
   // this is a little gross
   set_location(current_filename, current_lineno);

> 
> Cheers,
> 
> -- 
> D. Jeff Dionne                                        
> address@hidden
> 
> 
> 



-- 
D. Jeff Dionne                                        
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]