groff-commit
[Top][All Lists]
Advanced

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

[groff] 06/23: [hdtbl]: Fix code style nits in examples.


From: G. Branden Robinson
Subject: [groff] 06/23: [hdtbl]: Fix code style nits in examples.
Date: Thu, 21 Nov 2024 14:47:47 -0500 (EST)

gbranden pushed a commit to branch master
in repository groff.

commit 35faee28b47561823e36d6bf174a38179bae03a0
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Wed Nov 20 20:54:13 2024 -0600

    [hdtbl]: Fix code style nits in examples.
    
    * contrib/hdtbl/examples/chess_board.roff:
    * contrib/hdtbl/examples/color_boxes.roff:
    * contrib/hdtbl/examples/color_table_cells.roff:
    * contrib/hdtbl/examples/color_transitions.roff:
    * contrib/hdtbl/examples/fonts_n.in:
    * contrib/hdtbl/examples/mixed_pickles.roff:
    * contrib/hdtbl/examples/short_reference.roff: Drop garbage trailing
      spaces from input lines.
---
 contrib/hdtbl/examples/chess_board.roff       |  4 ++--
 contrib/hdtbl/examples/color_boxes.roff       |  4 ++--
 contrib/hdtbl/examples/color_table_cells.roff |  4 ++--
 contrib/hdtbl/examples/color_transitions.roff |  8 ++++----
 contrib/hdtbl/examples/fonts_n.in             | 18 +++++++++---------
 contrib/hdtbl/examples/mixed_pickles.roff     |  6 +++---
 contrib/hdtbl/examples/short_reference.roff   | 24 ++++++++++++------------
 7 files changed, 34 insertions(+), 34 deletions(-)

diff --git a/contrib/hdtbl/examples/chess_board.roff 
b/contrib/hdtbl/examples/chess_board.roff
index 171d95ec9..c7eee60f6 100644
--- a/contrib/hdtbl/examples/chess_board.roff
+++ b/contrib/hdtbl/examples/chess_board.roff
@@ -28,7 +28,7 @@ along with this program.  If not, see 
<http://www.gnu.org/licenses/>.
 .
 .nr *x 8
 .de r1
-.TR height=1.6c 
+.TR height=1.6c
 .TD hl= val=m hal=r \\\\n(*x
 .PN 4 ".TD bgc=wheat" ".TD bgc=tan3"
 .TD hl= val=m hal=l \\\\n(*x
@@ -51,7 +51,7 @@ along with this program.  If not, see 
<http://www.gnu.org/licenses/>.
 .TD hl=
 .PN 4 .r1 .r2
 .TR vl= hal=c
-.TD 
+.TD
 .nr *y 0
 .PN 8 .TD ".nr *y +1" \\\\n(*y
 .TD
diff --git a/contrib/hdtbl/examples/color_boxes.roff 
b/contrib/hdtbl/examples/color_boxes.roff
index 65538a73e..02e548305 100644
--- a/contrib/hdtbl/examples/color_boxes.roff
+++ b/contrib/hdtbl/examples/color_boxes.roff
@@ -34,13 +34,13 @@ along with this program.  If not, see 
<http://www.gnu.org/licenses/>.
 .PN 10 Text after horizontal rule and before table.
 .de ctab
 .nr ? 0 1
-.PN 5 .random# ".defcolor color\En+? rgb \E*[#random]" 
+.PN 5 .random# ".defcolor color\En+? rgb \E*[#random]"
 .TD ".TBL border=1c bc=color1 csp=0 cpd=0 height=3c bgc=color2" .TR .TD .ETB
 ..
 .
 .TBL tal=c border= csp=0 cpd=0 cols=5 width=3c
 .PN 2 .TR ".PN 5 .ctab"
-.ETB 
+.ETB
 .PN 15 Text after table.
 .TBL border=.5n bc=color1 bgc=color2 width=15c tal=c csp=.2n cpd=.3n .TR .TD 
.ETB
 .PN 25 Text after horizontal rule.
diff --git a/contrib/hdtbl/examples/color_table_cells.roff 
b/contrib/hdtbl/examples/color_table_cells.roff
index 65489cbe0..df059c35a 100644
--- a/contrib/hdtbl/examples/color_table_cells.roff
+++ b/contrib/hdtbl/examples/color_table_cells.roff
@@ -38,11 +38,11 @@ along with this program.  If not, see 
<http://www.gnu.org/licenses/>.
 .nr ? 0 1
 .de ctab
 .TR height=\nl/10
-.PN 8 .random# ".defcolor c\\\\n+? rgb \E*[#random]" ".TD bgc=c\\\\n?" 
+.PN 8 .random# ".defcolor c\\\\n+? rgb \E*[#random]" ".TD bgc=c\\\\n?"
 ..
 .TBL tal=c border= csp=0 cpd=0 cols=8 width=\nl/10
 .PN 8 .ctab
-.ETB 
+.ETB
 .PN 10 Text after table.
 .TBL border=.5n bc=c1 bgc=c2 width=15c tal=c csp=.2n cpd=.3n .TR .TD .ETB
 .PN 15 Text after HR.
diff --git a/contrib/hdtbl/examples/color_transitions.roff 
b/contrib/hdtbl/examples/color_transitions.roff
index be69b7c49..0ab59ea49 100644
--- a/contrib/hdtbl/examples/color_transitions.roff
+++ b/contrib/hdtbl/examples/color_transitions.roff
@@ -35,20 +35,20 @@ along with this program.  If not, see 
<http://www.gnu.org/licenses/>.
 .PN 30 Before table.
 .TBL cols=3 width=33% border= csp=0 cpd=0 bgc=
 .CPTN val=b Color Transitions
-.TR 
+.TR
 .TD ".ctab 0+\En[#cc]u \En[#cc]u \En[#cc]u"     \"     black -> white
 .TD ".ctab 1f-\En[#cc]u 1f-\En[#cc]u 1f-\En[#cc]u"\"   white -> black
 .TD ".ctab 1f \En[#cc]u \En[#cc]u"              \"     red   -> white
-.TR 
+.TR
 .TD ".ctab 0 1f-\En[#cc]u \En[#cc]u"            \"     green   -> blue
 .TD ".ctab 1f 1f-\En[#cc]u 1f"                  \"     white   -> magenta
 .TD ".ctab 1f \En[#cc]u 1f"                     \"     magenta -> white
-.TR 
+.TR
 .TD ".ctab 0+\En[#cc]u \En[#cc]u 1f-\En[#cc]u"  \"     blue   -> yellow
 .TD ".ctab 1f-\En[#cc]u 1f-\En[#cc]u \En[#cc]u" \"     yellow -> blue
 .TD ".ctab 1f 0+\En[#cc]u 0"                    \"     red    -> yellow
 .xTD ".ctab 0+\En[#cc]u 1f-\En[#cc]u 1f-\En[#cc]u"\"   cyan   -> red
-.ETB 
+.ETB
 .PN 30 After table.
 .
 .\" Local Variables:
diff --git a/contrib/hdtbl/examples/fonts_n.in 
b/contrib/hdtbl/examples/fonts_n.in
index 440ac7497..212f7ecbf 100644
--- a/contrib/hdtbl/examples/fonts_n.in
+++ b/contrib/hdtbl/examples/fonts_n.in
@@ -63,14 +63,14 @@ along with this program.  If not, see 
<http://www.gnu.org/licenses/>.
 .    if "\\*[*$1]"all" \{\
 .      ds *args \\*[*f] \\*[*args]
 .      pops *$1 *args
-.      nr *all 1 
+.      nr *all 1
 .    \}
 .
 .    if \\n[*all] \{\
 .      if "\\*[*$1]"." \
 .        nr *all 0
 .      if !F \\*[*$1] \
-.        continue 
+.        continue
 .    \}
 .
 .    t*index "\\*[*f]" \\*[*$1]
@@ -92,7 +92,7 @@ along with this program.  If not, see 
<http://www.gnu.org/licenses/>.
 .      ft
 .
 .      if (\\n[**] == \\n[*]) \
-.        continue 
+.        continue
 .    \}
 .
 .    if \\n[t*cptn] \
@@ -104,7 +104,7 @@ along with this program.  If not, see 
<http://www.gnu.org/licenses/>.
 .      CPTN groff font \\*[*$1] \
             .br \
             val=b ".pso @EGREP@ internalname \\*[fontpath]/dev\*[.T]/\\*[*$1]"
-.      TR 
+.      TR
 .        TD
 .          TBL cols=12 border=.1n bc=red csp=.1n cpd=.2n fgc=red4 bgc=beige \
                hal=c fsz='1.2 1.2' fst=\\*[*$1]
@@ -129,14 +129,14 @@ along with this program.  If not, see 
<http://www.gnu.org/licenses/>.
                ".TD fgc=blue fst=HB" \
                  \\\\n[y#].
 .
-.            TR fst=HB fgc=blue 
-.              TD 
+.            TR fst=HB fgc=blue
+.              TD
 .                nr x# 0-1 1
 .              PN 10 .TD \
                  \&..\\\\n+[x#]
-.              TD 
-.          ETB 
-.    ETB 
+.              TD
+.          ETB
+.    ETB
 .  \}
 ..
 .
diff --git a/contrib/hdtbl/examples/mixed_pickles.roff 
b/contrib/hdtbl/examples/mixed_pickles.roff
index 1c909e9a1..4153e6591 100644
--- a/contrib/hdtbl/examples/mixed_pickles.roff
+++ b/contrib/hdtbl/examples/mixed_pickles.roff
@@ -41,7 +41,7 @@ Call groff with options \-t, \-e, and \-p!
 .  TR
 .    TD
 .      TBL width='25% 75%' csp=.5n cpd=.5n hal=c
-.        TR 
+.        TR
 .          TD hl=d vl=d rowspan=2 bgc=red4 fgc=linen fsz=1.2 fst=HB val=m
 .            PSPIC -I -\\n[.l]u gnu.eps
 .            sp .5
@@ -49,7 +49,7 @@ Call groff with options \-t, \-e, and \-p!
 .          TD bgc=linen
 .
 .EQ
-int from 0 to 1 {( ln x ) sup 2} over {sqrt {1 - x sup 2}} dx approx 0.245 
+int from 0 to 1 {( ln x ) sup 2} over {sqrt {1 - x sup 2}} dx approx 0.245
 .EN
 .
 .            nop \0\0\0\0\0equation with \fIeqn\fP
@@ -77,7 +77,7 @@ Bit @ Code @ Warning @ Bit @ Code @ Warning
 .
 .            sp .5
 .            nop table with \fItbl\fP
-.        TR 
+.        TR
 .          TD colspan=2 bgc=azure2 fgc=blue4
 .
 .PS
diff --git a/contrib/hdtbl/examples/short_reference.roff 
b/contrib/hdtbl/examples/short_reference.roff
index 62b3bcdd4..0d1a647ca 100644
--- a/contrib/hdtbl/examples/short_reference.roff
+++ b/contrib/hdtbl/examples/short_reference.roff
@@ -41,28 +41,28 @@ using the macros themselves.
 .TBL "width=10% 40% 25% 25%" border= "fsz=1 .8"
 .CPTN Base- Optional- and Utility-Macros val=b
 .TR
-.TH Macro .TH Description .TH Predecessors .TH Successors 
-.TR 
+.TH Macro .TH Description .TH Predecessors .TH Successors
+.TR
 .TD \&.TBL .TD Begin a new table .TD \&.TD \&.TH \%.ETB cell content
-.TD \&.CPTN \&.TR 
-.TR 
+.TD \&.CPTN \&.TR
+.TR
 .TD \&.CPTN .TD Optional numbered or unnumbered table caption
-.TD \&.TBL .TD \&.TR 
+.TD \&.TBL .TD \&.TR
 .TR
 .TD \&.TR .TD Begin a new table row .TD \&.TBL \&.CPTN cell content
 .TD \&.TD \&.TR
 .TR
-.TD \&.TH .TD Optional begin table header cell 
+.TD \&.TH .TD Optional begin table header cell
 .TD \&.TR \&.TD \&.TH \%.ETB cell content
 .TD \&.TD \&.TH \&.TR \%.ETB cell content
-.TR 
+.TR
 .TD \&.TD .TD Begin table data cell .TD \&.TR \&.TD \&.TH \%.ETB cell content
 .TD \&.TD \&.TH \&.TR \%.ETB cell content
-.TR 
+.TR
 .TD \&.ETB .TD Finish and print table .TD \&.TD \&.TH \%.ETB cell content
 .TD \&.TBL \&.TR \&.TD \&.TH \%.ETB cell content
 .TR
-.TD \&.t*free 
+.TD \&.t*free
 .TD colspan=3 val=t Utility macro to free held tables. Use it outside any 
table.
 .ETB
 .bp
@@ -70,11 +70,11 @@ using the macros themselves.
 .TBL "fsz=1 .8" "width=20% 32% 8% 8% 8% 8% 8% 8%" border=
 .TR
 .TH Argument .TH Value .TH \&.TBL .TH \&.CPT .TH \&.TR .TH \&.TH .TH \&.TD .TH 
\&.ETB
-.TR 
-.TD border=\fI[n]\fP 
+.TR
+.TD border=\fI[n]\fP
 .TD border thickness .TD .ce X .TD .TD .TD .TD .TD
 .TR
-.TD bc=\fI[c]\fP 
+.TD bc=\fI[c]\fP
 .TD color of border and cellseperatorlines .TD .ce X .TD .TD .ce X .TD .ce X 
.TD .ce X .TD
 .ETB
 .H ------ incomplete -------



reply via email to

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