[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 18/30: [man]: Fix code style nits.
From: |
G. Branden Robinson |
Subject: |
[groff] 18/30: [man]: Fix code style nits. |
Date: |
Sat, 12 Oct 2024 12:07:53 -0400 (EDT) |
gbranden pushed a commit to branch master
in repository groff.
commit 0cc0145d56245f037550ccebf3374f25eeb772d6
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Fri Oct 11 12:03:33 2024 -0500
[man]: Fix code style nits.
* tmac/an.tmac (AT, UC): Fix code style nits. In formatted output
comparisons, use `'` as the delimiter, as is done everywhere else in
the file. Drop leading quotating marks from string assignments when
unnecessary (the value is known not to contain leading space).
---
ChangeLog | 8 ++++++++
tmac/an.tmac | 24 ++++++++++++------------
2 files changed, 20 insertions(+), 12 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 0bbdd354e..e633f013b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2024-10-11 G. Branden Robinson <g.branden.robinson@gmail.com>
+
+ * tmac/an.tmac (AT, UC): Fix code style nits. In formatted
+ output comparisons, use `'` as the delimiter, as is done
+ everywhere else in the file. Drop leading quotating marks from
+ string assignments when unnecessary (the value is known not to
+ contain leading space).
+
2024-10-11 G. Branden Robinson <g.branden.robinson@gmail.com>
* tmac/an.tmac (TH): Clarify language in style warning messages.
diff --git a/tmac/an.tmac b/tmac/an.tmac
index d45ee1631..881c41cf7 100644
--- a/tmac/an.tmac
+++ b/tmac/an.tmac
@@ -397,12 +397,12 @@
.\" .AT [system-id[ release-id]]
.de1 AT
. nop \\*[an-deprecation-warn]\\
-. ds an-extra2 "7th Edition\"
-. if "\\$1"3" .ds an-extra2 "7th Edition\"
-. 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\"
+. ds an-extra2 7th Edition\"
+. if '\\$1'3' .ds an-extra2 7th Edition\"
+. 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\"
. \}
. ev an*env-header-and-footer
. an*abbreviate-inner-footer
@@ -413,12 +413,12 @@
.\" .UC [system-id]
.de1 UC
. nop \\*[an-deprecation-warn]\\
-. ds an-extra2 "3rd Berkeley Distribution\"
-. if "\\$1"3" .ds an-extra2 "3rd Berkeley Distribution\"
-. if "\\$1"4" .ds an-extra2 "4th Berkeley Distribution\"
-. if "\\$1"5" .ds an-extra2 "4.2 Berkeley Distribution\"
-. if "\\$1"6" .ds an-extra2 "4.3 Berkeley Distribution\"
-. if "\\$1"7" .ds an-extra2 "4.4 Berkeley Distribution\"
+. ds an-extra2 3rd Berkeley Distribution\"
+. if '\\$1'3' .ds an-extra2 3rd Berkeley Distribution\"
+. if '\\$1'4' .ds an-extra2 4th Berkeley Distribution\"
+. if '\\$1'5' .ds an-extra2 4.2 Berkeley Distribution\"
+. if '\\$1'6' .ds an-extra2 4.3 Berkeley Distribution\"
+. if '\\$1'7' .ds an-extra2 4.4 Berkeley Distribution\"
. ev an*env-header-and-footer
. an*abbreviate-inner-footer
. ev
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 18/30: [man]: Fix code style nits.,
G. Branden Robinson <=