groff-commit
[Top][All Lists]
Advanced

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

[groff] 35/35: tmac/an.tmac: Fix code style nits.


From: G. Branden Robinson
Subject: [groff] 35/35: tmac/an.tmac: Fix code style nits.
Date: Mon, 25 Oct 2021 03:32:44 -0400 (EDT)

gbranden pushed a commit to branch master
in repository groff.

commit 84949d349b9153d1582e4b8139b68896d938ca16
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Mon Oct 25 17:53:11 2021 +1100

    tmac/an.tmac: Fix code style nits.
    
    * Use idiomatic indentation; I meant to do this after the exhausting
      commit a1e6c191 (3 October) (which preserved indentation level to keep
      the logic changes clearly visible in the diff), but forgot to fix the
      indents afterwards.
    * Clarify comment.
    * Fix typo in comment.
---
 tmac/an.tmac | 32 ++++++++++++++++----------------
 1 file changed, 16 insertions(+), 16 deletions(-)

diff --git a/tmac/an.tmac b/tmac/an.tmac
index c25f18e..0abd551 100644
--- a/tmac/an.tmac
+++ b/tmac/an.tmac
@@ -98,25 +98,25 @@
 .  pl \\n[nl]u
 ..
 .
-.\" We need an end macro to flush any pending output line and write the
-.\" footer for the final man page rendered.  We can also be called by
-.\" andoc when switching to an mdoc(7) page, irrespective of continuous
-.\" rendering mode.
+.\" We need an end-of-input macro to flush any pending output line and
+.\" write the footer for the final man page rendered.  We can also be
+.\" called by andoc when switching to an mdoc(7) page, irrespective of
+.\" continuous rendering mode.
 .de1 an-end
 .  if \\n[cR] \{\
-.  fl
-.  pl +1v
-.  sp 1v
-.  an-footer
-.  \" If we're processing multiple documents and have started a new one,
-.  \" draw a line between this footer and the next header.
-.  if !'\\n[.F]'' \{\
+.    fl
 .    pl +1v
-.    nf
-.    ti 0
+.    sp 1v
+.    an-footer
+.    \" If we're processing multiple documents and have started a new
+.    \" one, draw a line between this footer and the next header.
+.    if !'\\n[.F]'' \{\
+.      pl +1v
+.      nf
+.      ti 0
 \D'l \\n[LL]u 0'
-.    fi
-.  \}
+.      fi
+.    \}
 .  \}
 .  ch an-header
 .  bp
@@ -927,7 +927,7 @@
 .\" Set each rendering parameter only if its -[dr] option or man.local
 .\" did not.
 .
-.\" continous rendering (one long page)
+.\" continuous rendering (one long page)
 .if !r cR \{\
 .  ie n .nr cR 1
 .  el   .nr cR 0



reply via email to

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