gbranden pushed a commit to branch master
in repository groff.
commit 864abf4cb2792eccc7e9df3b5c3be82ce72f4103
Author: G. Branden Robinson <[email protected]>
AuthorDate: Wed Jun 4 10:26:20 2025 -0500
[grohtml]: Fix code style nits (4/4).
* src/devices/grohtml/post-html.cpp (html_printer::set_numbered_char):
Compare integer-valued variable to integer literal instead of letting
it pun down to a Boolean.
---
ChangeLog | 7 +++++++
src/devices/grohtml/post-html.cpp | 2 +-
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index 96693ce2e..781030ca4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2025-06-04 G. Branden Robinson <[email protected]>
+
+ * src/devices/grohtml/post-html.cpp
+ (html_printer::set_numbered_char): Compare integer-valued
+ variable to integer literal instead of letting it pun down to a
+ Boolean.
+
2025-06-04 G. Branden Robinson <[email protected]>
* src/devices/grohtml/post-html.cpp
diff --git a/src/devices/grohtml/post-html.cpp
b/src/devices/grohtml/post-html.cpp
index 891f78451..06286d969 100644
--- a/src/devices/grohtml/post-html.cpp
+++ b/src/devices/grohtml/post-html.cpp
@@ -4935,7 +4935,7 @@ void html_printer::set_numbered_char(int num, const
environment *env,
return;
}
int w;
- if (nbsp_width)
+ if (nbsp_width > 0)
w = nbsp_width;
else
w = f->get_width(g, env->size);
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit