public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] Fix whitespace in "help set inferior-tty"
@ 2024-04-16 14:48 Eli Zaretskii
  2024-04-16 15:45 ` Simon Marchi
  0 siblings, 1 reply; 5+ messages in thread
From: Eli Zaretskii @ 2024-04-16 14:48 UTC (permalink / raw)
  To: gdb-patches

Hi,

I've noticed that doc strings of "set inferior-tty" and "set cwd" have
some excess whitespace, which makes them display with unexpected
indentation, at least in a Windows command prompt window.  The patch
below fixes that.  OK to install?

gdb/infcmd.c (_initialize_infcmd): Remove excess whitespace.

--- gdb/infcmd.c~	2023-12-03 07:23:54.000000000 +0200
+++ gdb/infcmd.c	2024-04-16 17:39:29.132164800 +0300
@@ -3139,10 +3139,10 @@ _initialize_infcmd ()
   /* Add the filename of the terminal connected to inferior I/O.  */
   auto tty_set_show
     = add_setshow_optional_filename_cmd ("inferior-tty", class_run, _("\
-Set terminal for future runs of program being debugged."), _("		\
-Show terminal for future runs of program being debugged."), _("		\
-Usage: set inferior-tty [TTY]\n\n					\
-If TTY is omitted, the default behavior of using the same terminal as GDB\n \
+Set terminal for future runs of program being debugged."), _("\
+Show terminal for future runs of program being debugged."), _("\
+Usage: set inferior-tty [TTY]\n\n\
+If TTY is omitted, the default behavior of using the same terminal as GDB\n\
 is restored."),
 					 set_tty_value,
 					 get_tty_value,
@@ -3163,8 +3163,8 @@ Follow this command with any number of a
 
   auto cwd_set_show
     = add_setshow_string_noescape_cmd ("cwd", class_run, _("\
-Set the current working directory to be used when the inferior is started.\n \
-Changing this setting does not have any effect on inferiors that are\n	\
+Set the current working directory to be used when the inferior is started.\n\
+Changing this setting does not have any effect on inferiors that are\n\
 already running."),
 				       _("\
 Show the current working directory that is used when the inferior is started."),

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-04-17 14:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-16 14:48 [PATCH] Fix whitespace in "help set inferior-tty" Eli Zaretskii
2024-04-16 15:45 ` Simon Marchi
2024-04-16 16:16   ` Eli Zaretskii
2024-04-16 16:57     ` Philippe Waroquiers
2024-04-17 14:04       ` Tom Tromey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).