[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 23/50: [troff]: Tweak diagnostic message.
From: |
G. Branden Robinson |
Subject: |
[groff] 23/50: [troff]: Tweak diagnostic message. |
Date: |
Sat, 21 May 2022 12:17:26 -0400 (EDT) |
gbranden pushed a commit to branch master
in repository groff.
commit f6744951c3f2c1fb5815ae9b05acc48840530772
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Wed May 18 01:29:41 2022 -0500
[troff]: Tweak diagnostic message.
* src/roff/troff/env.cpp (environment::choose_breakpoint): Tweak
diagnostic message ("can't" -> "cannot").
* doc/groff.texi (Breaking): Update example.
---
ChangeLog | 6 ++++++
doc/groff.texi | 2 +-
src/roff/troff/env.cpp | 2 +-
3 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 0ed4e7bb..49c04b6f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2022-05-18 G. Branden Robinson <g.branden.robinson@gmail.com>
+
+ * src/roff/troff/env.cpp (environment::choose_breakpoint): Tweak
+ diagnostic message ("can't" -> "cannot").
+ * doc/groff.texi (Breaking): Update example.
+
2022-05-17 G. Branden Robinson <g.branden.robinson@gmail.com>
* doc/groff.texi (Copy Mode):
diff --git a/doc/groff.texi b/doc/groff.texi
index 058fa311..c85cddf8 100644
--- a/doc/groff.texi
+++ b/doc/groff.texi
@@ -4970,7 +4970,7 @@ regular output is omitted below.
@Example
$ perl -e 'print "#" x 80, "\n";' | nroff
- @error{} warning: can't break line
+ @error{} warning: cannot break line
@endExample
The remedy for these cases is to tell GNU @code{troff} where the line
diff --git a/src/roff/troff/env.cpp b/src/roff/troff/env.cpp
index 0469ec66..24298767 100644
--- a/src/roff/troff/env.cpp
+++ b/src/roff/troff/env.cpp
@@ -1971,7 +1971,7 @@ breakpoint *environment::choose_breakpoint()
}
if (best_bp) {
if (!best_bp_fits)
- output_warning(WARN_BREAK, "can't break line");
+ output_warning(WARN_BREAK, "cannot break line");
return best_bp;
}
return 0;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 23/50: [troff]: Tweak diagnostic message.,
G. Branden Robinson <=