groff-commit
[Top][All Lists]
Advanced

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

[groff] 02/18: doc/groff.texi: Fix error output in examples.


From: G. Branden Robinson
Subject: [groff] 02/18: doc/groff.texi: Fix error output in examples.
Date: Thu, 3 Jun 2021 11:03:19 -0400 (EDT)

gbranden pushed a commit to branch master
in repository groff.

commit 8227fc531cc774fa78d288ac78d3000ab4b7e342
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Tue Jun 1 19:48:00 2021 +1000

    doc/groff.texi: Fix error output in examples.
    
    Use the appropriate Texinfo command @error for this purpose (not
    @result).  Condense infinite loop error to one line since it fits.
    Condense another by omitting output page location information.  Fix
    no-longer-accurate use of backtick as quotation mark in diagnostic.
---
 doc/groff.texi | 14 ++++++--------
 1 file changed, 6 insertions(+), 8 deletions(-)

diff --git a/doc/groff.texi b/doc/groff.texi
index b6df911..980aa8b 100644
--- a/doc/groff.texi
+++ b/doc/groff.texi
@@ -4708,8 +4708,7 @@ regular output is omitted below.
 
 @Example
 $ perl -e 'print "#" x 80, "\n";' | nroff
-    @error{} troff: <standard input>:1: warning [p 1, 0.0i]:
-    @error{} can't break line
+    @error{} warning: can't break line
 @endExample
 
 The remedy for these cases is to tell GNU @code{troff} where the line
@@ -9360,7 +9359,7 @@ Font translations cannot be chained.
 .ftr XXX TR
 .ftr XXX YYY
 .ft XXX
-    @result{} warning: can't find font 'XXX'
+    @error{} warning: can't find font 'XXX'
 @endExample
 @endDefreq
 
@@ -9526,7 +9525,7 @@ In the following example, we want to access the 
PostScript font
 @Example
 .sty \n[.fp] Bar
 .fam Foo
-    @result{} warning: can't find font `FooR'
+    @error{} warning: can't find font 'FooR'
 @endExample
 
 @noindent
@@ -11479,8 +11478,7 @@ Now consider this example.
 ..
 .
 .bar
-    @error{} input stack limit exceeded
-    @error{} (probable infinite loop)
+    @error{} input stack limit exceeded (probable infinite loop)
 @endExample
 
 @noindent
@@ -11917,7 +11915,7 @@ The closing brace of a @code{while} body must end a 
line.
 .  while (\n[a] < 10) \@{\
 .    nop \n+[a]
 .\@}\@}
-    @result{} unbalanced \@{ \@}
+    @error{} unbalanced \@{ \@}
 @endExample
 @end itemize
 @endDefreq
@@ -12035,7 +12033,7 @@ The value of xxx is \\n[xxx].
 .cp 1
 .
 .aa
-    @result{} warning: number register `[' not defined
+    @error{} warning: number register '[' not defined
     @result{} The value of xxx is 0xxx].
 .bb
     @result{} The value of xxx is 12345.



reply via email to

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