groff-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[groff] 19/26: src/roff/troff/input.cpp: Fix braces, stray UTF-8.


From: G. Branden Robinson
Subject: [groff] 19/26: src/roff/troff/input.cpp: Fix braces, stray UTF-8.
Date: Thu, 14 Nov 2024 11:54:11 -0500 (EST)

gbranden pushed a commit to branch master
in repository groff.

commit b87c7db117458319402018998c2490cd8ebb141f
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Tue Nov 12 11:40:34 2024 -0600

    src/roff/troff/input.cpp: Fix braces, stray UTF-8.
    
    groff's code style is to not brace single-statement branches.
    
    Also fix a copy-and-paste mistake in the usage message.
---
 src/roff/troff/input.cpp | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/roff/troff/input.cpp b/src/roff/troff/input.cpp
index 6ad2770eb..5faac261d 100644
--- a/src/roff/troff/input.cpp
+++ b/src/roff/troff/input.cpp
@@ -8901,17 +8901,16 @@ void usage(FILE *stream, const char *prog)
 "usage: %s {-v | --version}\n"
 "usage: %s --help\n",
          prog, prog, prog);
-  if (stdout == stream) {
+  if (stdout == stream)
     fputs(
 "\n"
-"GNU troff transforms groff(7) language input into the deviceā€\n"
+"GNU troff transforms groff(7) language input into the device-\n"
 "independent page description language detailed in groff_out(5); it\n"
 "is the heart of the GNU roff document formatting system.  Many\n"
 "people prefer to use the groff(1) command, a front end that also\n"
 "runs preprocessors and output drivers in the appropriate order and\n"
 "with appropriate options.  See the troff(1) manual page.\n",
          stream);
-  }
 }
 
 int main(int argc, char **argv)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]