groff-commit
[Top][All Lists]
Advanced

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

[groff] 11/23: [hdtbl]: Improve operation in failure mode.


From: G. Branden Robinson
Subject: [groff] 11/23: [hdtbl]: Improve operation in failure mode.
Date: Thu, 21 Nov 2024 14:47:48 -0500 (EST)

gbranden pushed a commit to branch master
in repository groff.

commit 4df0b8510ba35ee75499756d955aebb5bc7c79ee
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Wed Nov 20 21:16:45 2024 -0600

    [hdtbl]: Improve operation in failure mode.
    
    * examples/fonts_n.in:
    * examples/fonts_x.in: Throw useful diagnostic and abort if unsafe mode
      is not enabled; prevents horrendous spew of errors from formatter.
      Move status/progress message closer to the relevant logic.
---
 contrib/hdtbl/ChangeLog           | 8 ++++++++
 contrib/hdtbl/examples/fonts_n.in | 7 ++++++-
 contrib/hdtbl/examples/fonts_x.in | 7 ++++++-
 3 files changed, 20 insertions(+), 2 deletions(-)

diff --git a/contrib/hdtbl/ChangeLog b/contrib/hdtbl/ChangeLog
index 31a18d254..a3ce638c8 100644
--- a/contrib/hdtbl/ChangeLog
+++ b/contrib/hdtbl/ChangeLog
@@ -1,3 +1,11 @@
+2024-11-20  G. Branden Robinson <g.branden.robinson@gmail.com>
+
+       * examples/fonts_n.in:
+       * examples/fonts_x.in: Throw useful diagnostic and abort if
+       unsafe mode is not enabled; prevents horrendous spew of errors
+       from formatter.  Move status/progress message closer to the
+       relevant logic.
+
 2024-11-19  G. Branden Robinson <g.branden.robinson@gmail.com>
 
        * examples/fonts_n.in (fontdump):
diff --git a/contrib/hdtbl/examples/fonts_n.in 
b/contrib/hdtbl/examples/fonts_n.in
index 0ab9c8f82..d2d2d8263 100644
--- a/contrib/hdtbl/examples/fonts_n.in
+++ b/contrib/hdtbl/examples/fonts_n.in
@@ -45,7 +45,11 @@ along with this program.  If not, see 
<http://www.gnu.org/licenses/>.
 .if !d fontpath \
 .  ds fontpath @fontdir@
 .
-.tm \*[fonts_n]: listing fonts in \*[fontpath]/dev\*[.T]
+.if !\n[.U] \{\
+.  tmc \*[fonts_n]: document requires unsafe mode;
+.  tm1 " use groff's '-U' option
+.  ab
+.\}
 .
 .de fontdump
 .  ie \\n[.$] \
@@ -144,6 +148,7 @@ along with this program.  If not, see 
<http://www.gnu.org/licenses/>.
 .  \}
 ..
 .
+.tm \*[fonts_n]: listing fonts in \*[fontpath]/dev\*[.T]
 .fontdump all
 .
 .\" Local Variables:
diff --git a/contrib/hdtbl/examples/fonts_x.in 
b/contrib/hdtbl/examples/fonts_x.in
index 2beeb1155..45ff81afc 100644
--- a/contrib/hdtbl/examples/fonts_x.in
+++ b/contrib/hdtbl/examples/fonts_x.in
@@ -45,7 +45,11 @@ along with this program.  If not, see 
<http://www.gnu.org/licenses/>.
 .if !d fontpath \
 .  ds fontpath @fontdir@
 .
-.tm \*[fonts_x]: listing fonts in \*[fontpath]/dev\*[.T]
+.if !\n[.U] \{\
+.  tmc \*[fonts_n]: document requires unsafe mode;
+.  tm1 " use groff's '-U' option
+.  ab
+.\}
 .
 .de fontdump
 .  ie \\n[.$] \
@@ -155,6 +159,7 @@ along with this program.  If not, see 
<http://www.gnu.org/licenses/>.
 .  \}
 ..
 .
+.tm \*[fonts_x]: listing fonts in \*[fontpath]/dev\*[.T]
 .fontdump all
 .
 .\" Local Variables:



reply via email to

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