gbranden pushed a commit to branch master
in repository groff.
commit 8aeb7c5d446067633864bf9cb0e688a335fcfdf1
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sun Mar 15 08:50:01 2026 -0500
Fix typos in source code comments.
---
src/devices/grohtml/html-text.cpp | 2 +-
src/preproc/eqn/text.cpp | 2 +-
src/roff/troff/input.cpp | 4 ++--
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/devices/grohtml/html-text.cpp
b/src/devices/grohtml/html-text.cpp
index 449c6b7e7..7283ed25e 100644
--- a/src/devices/grohtml/html-text.cpp
+++ b/src/devices/grohtml/html-text.cpp
@@ -449,7 +449,7 @@ void html_text::do_tt (void)
}
/*
- * do_pre - changes to preformated text.
+ * do_pre - changes to preformatted text.
*/
void html_text::do_pre (void)
diff --git a/src/preproc/eqn/text.cpp b/src/preproc/eqn/text.cpp
index 4d6a33513..19b2e8f68 100644
--- a/src/preproc/eqn/text.cpp
+++ b/src/preproc/eqn/text.cpp
@@ -350,7 +350,7 @@ struct map entity_table[] = {
{"c+", "⊕"}, // ISOamsb: plus sign in a circle
// Old troff \(di goes here
{"tdi", "÷"}, // ISOnum
- {"f/", "―"}, // ISOnum: horizintal bar for fractions
+ {"f/", "―"}, // ISOnum: horizontal bar for fractions
// Old troff \(** goes here
{"<=", "≤"}, // ISOtech
{">=", "≥"}, // ISOtech
diff --git a/src/roff/troff/input.cpp b/src/roff/troff/input.cpp
index c79ad5035..1ceda48a1 100644
--- a/src/roff/troff/input.cpp
+++ b/src/roff/troff/input.cpp
@@ -3320,7 +3320,7 @@ void exit_troff()
topdiv->space(topdiv->get_page_length(), true /* forcing */);
tok.next();
process_input_stack();
- // TODO: Resolve the follwing case and enable the assertion.
+ // TODO: Resolve the following case and enable the assertion.
// $ printf '.DS\n.DE\n' | ./build/test-groff -ms
// troff: ../src/roff/troff/input.cpp:2937: void exit_troff():
// Assertion `seen_last_page_ejector' failed.
@@ -6105,7 +6105,7 @@ static bool read_delimited_measurement(units *n, unsigned
char si)
// \l, \L
//
// Here's some syntax unique to these escape sequences: a horizontal
-// measurment followed immediately by a character.
+// measurement followed immediately by a character.
static bool read_line_rule_expression(units *n, unsigned char si,
charinfo **cip)
{
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit