gbranden pushed a commit to branch master
in repository groff.
commit 6d460811f27ff7edaf0517faa95933f423259589
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sat Jun 14 18:13:24 2025 -0500
[grohtml]: Disclose more info in fatal diagnostic.
* src/devices/grohtml/post-html.cpp (html_printer::set_style): Disclose
name of font description file lacking `internalname` directive in
fatal diagnostic when this is the case.
---
ChangeLog | 6 ++++++
src/devices/grohtml/post-html.cpp | 4 ++--
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 0eec63782..058f0e035 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2025-06-14 G. Branden Robinson <[email protected]>
+
+ * src/devices/grohtml/post-html.cpp (html_printer::set_style):
+ Disclose name of font description file lacking `internalname`
+ directive in fatal diagnostic when this is the case.
+
2025-06-14 G. Branden Robinson <[email protected]>
* src/roff/troff/input.cpp (charinfo::dump): Fix thinko when
diff --git a/src/devices/grohtml/post-html.cpp
b/src/devices/grohtml/post-html.cpp
index 7a2c6a744..7ce3616f1 100644
--- a/src/devices/grohtml/post-html.cpp
+++ b/src/devices/grohtml/post-html.cpp
@@ -2378,8 +2378,8 @@ void html_printer::set_style(const style &sty)
if (0 /* nullptr */ == fontname)
// XXX: Is this the only circumstance that can cause a null font
// description file name? ps.cpp uses sty.f->get_internal_name()...
- fatal("cannot set style; font description lacks an 'internalname'"
- " directive");
+ fatal("cannot set style; font description file '%1' lacks an"
+ " 'internalname' directive", fontname);
#if 0
change_font(fontname, (font::res / (72 * font::sizescale))
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit