gbranden pushed a commit to branch master
in repository groff.

commit 13e8187e3e0896ff198118b1af37acfe99940d82
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sat May 16 05:20:53 2026 -0500

    [grohtml]: Fix code style nit.
    
    * src/devices/grohtml/post-html.cpp (html_printer::write_navigation):
      Parenthesize formally complex expressions.
---
 ChangeLog                         |  6 ++++++
 src/devices/grohtml/post-html.cpp | 10 +++++-----
 2 files changed, 11 insertions(+), 5 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 035155cea..7bf81a79d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2026-05-16  G. Branden Robinson <[email protected]>
+
+       * src/devices/grohtml/post-html.cpp
+       (html_printer::write_navigation): Fix code style nit.
+       Parenthesize formally complex expressions.
+
 2026-05-13  G. Branden Robinson <[email protected]>
 
        * tmac/tests/an_MR-works.sh: Validate behavior of macro when
diff --git a/src/devices/grohtml/post-html.cpp 
b/src/devices/grohtml/post-html.cpp
index 3a2542061..9bb3a1e87 100644
--- a/src/devices/grohtml/post-html.cpp
+++ b/src/devices/grohtml/post-html.cpp
@@ -5314,14 +5314,14 @@ void html_printer::write_navigation (const string &top,
     handle_valid_flag(FALSE);
     fputs("[ ", stdout);
     if ((strcmp(prev.contents(), "") != 0)
-       && prev != top
-       && prev != current) {
+       && (prev != top)
+       && (prev != current)) {
       emit_link(prev, "prev");
       need_bar = TRUE;
     }
     if ((strcmp(next.contents(), "") != 0)
-       && next != top
-       && next != current) {
+       && (next != top)
+       && (next != current)) {
       if (need_bar)
        fputs(" | ", stdout);
       emit_link(next, "next");
@@ -5329,7 +5329,7 @@ void html_printer::write_navigation (const string &top,
     }
     if (top != "<standard input>"
        && (strcmp(top.contents(), "") != 0)
-       && top != current) {
+       && (top != current)) {
       if (need_bar)
        fputs(" | ", stdout);
       emit_link(top, "top");

_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit

Reply via email to