groff-commit
[Top][All Lists]
Advanced

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

[groff] 03/03: col_rowspan_colors.roff: Integer must be odd.


From: G. Branden Robinson
Subject: [groff] 03/03: col_rowspan_colors.roff: Integer must be odd.
Date: Wed, 1 Nov 2017 00:04:07 -0400 (EDT)

gbranden pushed a commit to branch master
in repository groff.

commit e44909563c634c45e0ebc813e6e6d539a17030ed
Author: G. Branden Robinson <address@hidden>
Date:   Wed Nov 1 00:00:45 2017 -0400

    col_rowspan_colors.roff: Integer must be odd.
    
    Also:
    * Remove space at end of lines.
    * Correct use of ".tm" to include a space at the beginning.
    * Add a space between a number and a unit in a comment.
    
    Signed-off-by: Bjarni Ingi Gislason <address@hidden>
    
    Additionally:
    
    Add comment documenting use of unsafe macros.
    
    Signed-off-by: G. Branden Robinson <address@hidden>
---
 contrib/hdtbl/examples/col_rowspan_colors.roff | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/contrib/hdtbl/examples/col_rowspan_colors.roff 
b/contrib/hdtbl/examples/col_rowspan_colors.roff
index 6548c0b..83589bb 100644
--- a/contrib/hdtbl/examples/col_rowspan_colors.roff
+++ b/contrib/hdtbl/examples/col_rowspan_colors.roff
@@ -25,6 +25,7 @@ along with this program.  If not, see 
<http://www.gnu.org/licenses/>.
 .
 .so \*[sopath]examples/common.roff
 .
+.\" The "time" macro from common.roff requires groff's -U unsafe mode.
 .time start
 .
 .de color#
@@ -37,9 +38,9 @@ along with this program.  If not, see 
<http://www.gnu.org/licenses/>.
 .nr # 0
 .color#
 .if \\n[t*cols\\n[t*#]]/2*2=\\n[t*cols\\n[t*#]] \{ .
-.   tmc \\n(.F:\\n(.c: cols was even (\\n[t*cols\\n[t*#]]), 
+.   tmc \\n(.F:\\n(.c: cols was even (\\n[t*cols\\n[t*#]]),
 .   nr t*cols\\n[t*#] +1
-.   tm  increased by one col to \\n[t*cols\\n[t*#]].
+.   tm1 " increased by one col to \\n[t*cols\\n[t*#]].
 .   t*cl \\*[width]
 .   ie "\\*[tal]"r" .nr in\\n[t*#] -\\*[width]\"    recalculate cell widths 
etc.
 .   el .if "\\*[tal]"c" .nr in\\n[t*#] -\\*[width]/2
@@ -54,7 +55,7 @@ along with this program.  If not, see 
<http://www.gnu.org/licenses/>.
 .   color#
 .   ds html "".TR height=\\nW" ".TD colspan=\\nI bgc=c\\n#"
 .   color#
-.   as html " ".TD rowspan=\\nI bgc=c\\n#" 
+.   as html " ".TD rowspan=\\nI bgc=c\\n#"
 .   color#
 .   as html " ".TR height=\\nW" ".TD rowspan=\\nI bgc=c\\n#"
 .   color#
@@ -69,14 +70,15 @@ along with this program.  If not, see 
<http://www.gnu.org/licenses/>.
 .PN 8 Indented text before table.
 *** *** ***
 .TBL width=90% border=1n csp=1n cpd=1n bgc=wheat tal=c .TR .TD
-.TBL  border= cols=10 width=1c tal=c csp=0 cpd=0 \"cols must be odd
+.TBL  border= cols=11 width=1c tal=c csp=0 cpd=0 \"cols must be odd
 .CPTN val=b Randomly Colored Table Cells with Colspan/\%Rowspan
 .brt
-.ETB .ETB 
+.ETB .ETB
 .PN 15 Text after table.
+.\" "time" and "date" from common.roff require groff's -U unsafe mode.
 .time
 .date
-.\"    466MHz Celeron CPU, 384MB RAM 
+.\"    466 MHz Celeron CPU, 384 MB RAM
 .\"    WindowsXP/cygwin groff18.1:      4s
 .\"    WindowsXP/cygwin groff19.2:      7s
 .\"    Suse Linux 9.3 groff19.2:        1s



reply via email to

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