[binutils-gdb] [gdb] Fix trailing whitespace in refcard.tex

Tom de Vries via Gdb-cvs <[email protected]> Thu, 18 Jun 2026 20:07:45 +0000 (GMT)
Newsgroups gmane.comp.gdb.cvs
Message-ID <[email protected]>
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=0be1bae8288ba4268081917cd8f7013c0fcb88a2

commit 0be1bae8288ba4268081917cd8f7013c0fcb88a2
Author: Tom de Vries <[email protected]>
Date:   Thu Jun 18 22:06:50 2026 +0200

    [gdb] Fix trailing whitespace in refcard.tex
    
    Fix:
    ...
    gdb/doc/refcard.tex:314: trailing whitespace.
    +b \opt{\it file\tt:}{\it line}&set breakpoint at {\it line} number \opt{in \it file}\par
    gdb/doc/refcard.tex:344: trailing whitespace.
    +enable \opt{{\it n}}&enable breakpoints
    gdb/doc/refcard.tex:347: trailing whitespace.
    +enable once \opt{{\it n}}&enable breakpoints \opt{or breakpoint {\it n}};
    gdb/doc/refcard.tex:350: trailing whitespace.
    +enable del \opt{{\it n}}&enable breakpoints \opt{or breakpoint {\it n}};
    gdb/doc/refcard.tex:494: trailing whitespace.
    +\qquad {\it command-list}&create new GDB command {\it cmd};
    gdb/doc/refcard.tex:498: trailing whitespace.
    +\qquad {\it help-text}&create online documentation
    gdb/doc/refcard.tex:595: trailing whitespace.
    +list {\it lines}&display source surrounding {\it lines},
    gdb/doc/refcard.tex:629: trailing whitespace.
    +statement.\cr
    ...
    
    Verified by checking refcard.pdf.
    
    Approved-By: Tom Tromey <[email protected]>

Diff:
---
 gdb/contrib/check-whitespace-pre-commit.py |  4 +---
 gdb/doc/refcard.tex                        | 26 +++++++++++++-------------
 2 files changed, 14 insertions(+), 16 deletions(-)

diff --git a/gdb/contrib/check-whitespace-pre-commit.py b/gdb/contrib/check-whitespace-pre-commit.py
index b7581a3dc70..1d23bde19a7 100755
--- a/gdb/contrib/check-whitespace-pre-commit.py
+++ b/gdb/contrib/check-whitespace-pre-commit.py
@@ -22,9 +22,7 @@ import sys
 re_ignore = re.compile("ChangeLog")
 
 # Files that are not clean, so they're only checked when changes.
-todo_list = [
-    "gdb/doc/refcard.tex",
-]
+todo_list = []
 
 clean = []
 other = []
diff --git a/gdb/doc/refcard.tex b/gdb/doc/refcard.tex
index f334cce0fd0..7dfb74cfcfd 100644
--- a/gdb/doc/refcard.tex
+++ b/gdb/doc/refcard.tex
@@ -311,7 +311,7 @@ one or more arguments}
 \eject
 \sec Breakpoints and Watchpoints;
 break \opt{\it file\tt:}{\it line}\par
-b \opt{\it file\tt:}{\it line}&set breakpoint at {\it line} number \opt{in \it file}\par 
+b \opt{\it file\tt:}{\it line}&set breakpoint at {\it line} number \opt{in \it file}\par
 eg:\quad{\tt break main.c:37}\quad\cr
 break \opt{\it file\tt:}{\it func}&set breakpoint at {\it
 func} \opt{in \it file}\cr
@@ -341,14 +341,14 @@ delete \opt{{\it n}}&delete breakpoints
 disable \opt{{\it n}}&disable breakpoints
 \opt{or breakpoint {\it n}}
 \cr
-enable \opt{{\it n}}&enable breakpoints 
+enable \opt{{\it n}}&enable breakpoints
 \opt{or breakpoint {\it n}}
 \cr
-enable once \opt{{\it n}}&enable breakpoints \opt{or breakpoint {\it n}}; 
-disable again when reached
+enable once \opt{{\it n}}&enable breakpoints \opt{or breakpoint {\it n}};
+ disable again when reached
 \cr
-enable del \opt{{\it n}}&enable breakpoints \opt{or breakpoint {\it n}}; 
-delete when reached
+enable del \opt{{\it n}}&enable breakpoints \opt{or breakpoint {\it n}};
+ delete when reached
 \cr
 \cr
 ignore {\it n} {\it count}&ignore breakpoint {\it n}, {\it count}
@@ -491,12 +491,12 @@ source {\it script}&read, execute GDB commands from file {\it
 script}\cr
 \cr
 define {\it cmd}\par
-\qquad {\it command-list}&create new GDB command {\it cmd}; 
-execute script defined by {\it command-list}\cr
+\qquad {\it command-list}&create new GDB command {\it cmd};
+ execute script defined by {\it command-list}\cr
 end&end of {\it command-list}\cr
 document {\it cmd}\par
-\qquad {\it help-text}&create online documentation 
-for new GDB command {\it cmd}\cr
+\qquad {\it help-text}&create online documentation
+ for new GDB command {\it cmd}\cr
 end&end of {\it help-text}\cr
 \endsec
 
@@ -592,8 +592,8 @@ show dir&show current source path\cr
 \cr
 list&show next ten lines of source\cr
 list -&show previous ten lines\cr
-list {\it lines}&display source surrounding {\it lines}, 
-specified as:\cr
+list {\it lines}&display source surrounding {\it lines},
+ specified as:\cr
 \quad{\opt{\it file\tt:}\it num}&line number \opt{in named file}\cr
 \quad{\opt{\it file\tt:}\it function}&beginning of function \opt{in
 named file}\cr
@@ -626,7 +626,7 @@ M-d&down {\it arg} frames ({\tt down})\cr
 \sec GDB License;
 show copying&Display GNU General Public License\cr
 show warranty&There is NO WARRANTY for GDB.  Display full no-warranty
-statement.\cr 
+statement.\cr
 \endsec