gbranden pushed a commit to branch master
in repository groff.
commit b893336f21fbe59be5e613d181fb517eebae9dbe
Author: G. Branden Robinson <[email protected]>
AuthorDate: Mon Oct 20 14:47:13 2025 -0500
src/roff/troff/env.cpp: Fix code style nit.
Annotate meaning of Boolean argument to `possibly_break_line` function.
---
src/roff/troff/env.cpp | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/roff/troff/env.cpp b/src/roff/troff/env.cpp
index 73408f956..174562a86 100644
--- a/src/roff/troff/env.cpp
+++ b/src/roff/troff/env.cpp
@@ -542,7 +542,7 @@ void environment::space_newline()
return;
}
add_node(new word_space_node(x, get_fill_color(), w));
- possibly_break_line(false, is_spreading);
+ possibly_break_line(false /* must break here */, is_spreading);
is_spreading = false;
}
@@ -578,7 +578,7 @@ void environment::space(hunits space_width, hunits
sentence_space_width)
get_fill_color(),
new width_list(space_width,
sentence_space_width)));
- possibly_break_line(false, is_spreading);
+ possibly_break_line(false /* must break here */, is_spreading);
is_spreading = false;
}
@@ -2602,7 +2602,7 @@ void environment::do_break(bool want_adjustment)
line = new space_node(H0, get_fill_color(), line);
space_total++;
}
- possibly_break_line(false, want_adjustment);
+ possibly_break_line(false /* must break here */, want_adjustment);
}
while (line != 0 /* nullptr */ && line->discardable()) {
width_total -= line->width();
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit