groff-commit
[Top][All Lists]
Advanced

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

[groff] 02/17: tmac/an-old.tmac: Fix code style nit.


From: G. Branden Robinson
Subject: [groff] 02/17: tmac/an-old.tmac: Fix code style nit.
Date: Fri, 25 Jun 2021 18:05:15 -0400 (EDT)

gbranden pushed a commit to branch master
in repository groff.

commit 1e8c6b8d202e3e5d15bd1d9aebd612eecadea4de
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Fri Jun 25 08:25:50 2021 +1000

    tmac/an-old.tmac: Fix code style nit.
    
    Format simple .ie/.el control structures more consistently with other
    use in the file, and to use vertical space more economically.
---
 tmac/an-old.tmac | 44 +++++++++++++++-----------------------------
 1 file changed, 15 insertions(+), 29 deletions(-)

diff --git a/tmac/an-old.tmac b/tmac/an-old.tmac
index 9ac4f02..70a8bac 100644
--- a/tmac/an-old.tmac
+++ b/tmac/an-old.tmac
@@ -85,10 +85,8 @@
 .\" This .ne replacement avoids page breaks; instead, the page length is
 .\" increased to the necessary amount (this is needed for tables).
 .de an-ne
-.  ie \\n[.$] \
-.    nr an-amount (v;\\$*)
-.  el \
-.    nr an-amount 1v
+.  ie \\n[.$] .nr an-amount (v;\\$*)
+.  el         .nr an-amount 1v
 .  if (\\n[an-amount] >= \\n[.t]) \
 .    pl +(\\n[an-amount]u - \\n[.t]u + 1v)
 .  rr an-amount
@@ -287,7 +285,7 @@
 .  if "\\$1"4" .ds an-extra2 "System III\"
 .  if "\\$1"5" \{\
 .    ie "\\$2"" .ds an-extra2 "System V\"
-.    el .ds an-extra2 "System V Release \\$2\"
+.    el         .ds an-extra2 "System V Release \\$2\"
 .  \}
 ..
 .
@@ -788,10 +786,8 @@
 .\" Start table.
 .de1 TS
 .  \" If continuous rendering, tell tbl not to use keeps.
-.  ie \\n[cR] \
-.    nr 3usekeeps 0
-.  el \
-.    nr 3usekeeps 1
+.  ie \\n[cR] .nr 3usekeeps 0
+.  el         .nr 3usekeeps 1
 .  sp \\n[PD]u
 .  if \\n[an-is-output-html] \{\
 .    nr an-TS-ll \\n[.l]
@@ -842,10 +838,8 @@
 .    nop \\$*
 .  \}
 .  el \{\
-.    ie c\[rg] \
-.      nop \[rg]\c
-.    el \
-.      nop (Reg.)\c
+.    ie c\[rg] .nop \[rg]\c
+.    el        .nop (Reg.)\c
 .  \}
 ..
 .
@@ -893,10 +887,8 @@
 .
 .\" continous rendering (one long page)
 .if !r cR \{\
-.  ie n \
-.    nr cR 1
-.  el \
-.    nr cR 0
+.  ie n .nr cR 1
+.  el   .nr cR 0
 .\}
 .
 .\" continuous page numbering over multiple documents
@@ -977,10 +969,8 @@
 .\" hyphenation mode
 .if !r HY \{\
 .  \" No page breaks occur in continuous rendering.
-.  ie \n[cR] \
-.    nr HY 4
-.  el \
-.    nr HY 6
+.  ie \n[cR] .nr HY 4
+.  el        .nr HY 6
 .\}
 .
 .\" standard indentation
@@ -988,20 +978,16 @@
 .  \" We select an integer indentation value in nroff mode because this
 .  \" value is used additively for multiple purposes; rounding of
 .  \" accumulating fractions would produce inconsistent results.
-.  ie t \
-.    nr IN 7.2n
-.  el \
-.    nr IN 7n
+.  ie t .nr IN 7.2n
+.  el   .nr IN 7n
 .\}
 .
 .\" line length
 .if !r LL \{\
 .  \" If in troff mode, respect device default.
-.  ie t \
-.    nr LL \n[.l]
+.  ie t .nr LL \n[.l]
 .  \" Otherwise, override nroff mode default of 65n.
-.  el \
-.    nr LL 78n
+.  el   .nr LL 78n
 .\}
 .
 .\" title (header, footer) length



reply via email to

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