groff-commit
[Top][All Lists]
Advanced

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

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


From: G. Branden Robinson
Subject: [groff] 14/19: tmac/an.tmac: Fix code style nits.
Date: Mon, 8 Nov 2021 18:56:03 -0500 (EST)

gbranden pushed a commit to branch master
in repository groff.

commit c0cfb88bff2b7d370fcdf10cd53a7278a346fc30
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Tue Nov 9 09:12:28 2021 +1100

    tmac/an.tmac: Fix code style nits.
    
    * tmac/an.tmac (OP): Fix code style nits.  Don't quote macro arguments
      unnecessarily.  Use consistent backslashing.  Use groff font escape
      sequence syntax.  Use adjustable non-breaking space escape sequence
      instead of a non-adjustable one.  Parenthesize numeric expression for
      better readability.
---
 ChangeLog    | 8 ++++++++
 tmac/an.tmac | 6 +++---
 2 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 05a4867..c103786 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
 2021-11-09  G. Branden Robinson <g.branden.robinson@gmail.com>
 
+       * tmac/an.tmac (OP): Fix code style nits.  Don't quote macro
+       arguments unnecessarily.  Use consistent backslashing.  Use
+       groff font escape sequence syntax.  Use adjustable non-breaking
+       space escape sequence instead of a non-adjustable one.
+       Parenthesize numeric expression for better readability.
+
+2021-11-09  G. Branden Robinson <g.branden.robinson@gmail.com>
+
        [libgroff]: Make allocator replacement optional.  Switch it
        off by default, relying on C++ runtime new/delete support.
 
diff --git a/tmac/an.tmac b/tmac/an.tmac
index 4952efb..738dfb5 100644
--- a/tmac/an.tmac
+++ b/tmac/an.tmac
@@ -863,10 +863,10 @@
 \\*[an-deprecation-warn]\\
 .  if ((\\n[.$] < 1) : (\\n[.$] > 2)) \
 .    an-style-warn .\\$0 expects 1 or 2 arguments, got \\n[.$]
-.  ie \\n[.$]>1 \
-.    RI "[\fB\\$1\fP" "\ \\$2" "]"
+.  ie (\\n[.$] > 1) \
+.    RI [\\f[B]\\$1\f[] \~\\$2 ]
 .  el \
-.    RB "[" "\\$1" "]"
+.    RB [ \\$1 ]
 ..
 .
 .\" Set a man page cross reference.



reply via email to

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