groff
[Top][All Lists]
Advanced

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

Re: [Groff] Infinite loop in ms


From: Werner LEMBERG
Subject: Re: [Groff] Infinite loop in ms
Date: Wed, 28 Jul 2004 17:12:34 +0200 (CEST)

Almost two years ago, Robert Goulding reported this:

> The following minimal file causes an infinite loop when processed
> with groff -Tlatin1 -ms
> 
> .nr FM 1.25i
> .LP
> This is some text!\**
> .FS
> This is footnote.
> .FE
> 
> (but no problems with ps-output).

I *think* that the patch below fixes it.  My simple tests worked well,
but I don't have larger documents with many footnotes; additionally,
my knowledge of ms is still very small.

Please test and report whether PS (and ASCII) output gives good
results -- they might be slightly different but should be still OK.


    Werner


======================================================================


--- s.tmac      Sun Jul 25 10:56:09 2004
+++ s.tmac.new  Wed Jul 28 16:50:06 2004
@@ -679,7 +679,10 @@
 .nr address@hidden 0
 .nr address@hidden address@hidden
 .ev fn
-.nr address@hidden -\\n[.v]
+.\" Round it vertically
+.vs address@hidden
+.nr address@hidden \\n[.v]
+.vs
 .ev
 .ie address@hidden>address@hidden \{\
 .      rn address@hidden address@hidden


reply via email to

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