[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 21/25: contrib/mm/m.tmac (ISODATE): Fix code style nits.
From: |
G. Branden Robinson |
Subject: |
[groff] 21/25: contrib/mm/m.tmac (ISODATE): Fix code style nits. |
Date: |
Tue, 29 Oct 2024 02:26:06 -0400 (EDT) |
gbranden pushed a commit to branch master
in repository groff.
commit cb8263510158c304b1466360f1d82300bc3c54e4
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Mon Oct 28 11:09:47 2024 -0500
contrib/mm/m.tmac (ISODATE): Fix code style nits.
* Use the file's prevailing indentation and brace style.
* Use whitespace constructively.
---
contrib/mm/m.tmac | 21 ++++++++-------------
1 file changed, 8 insertions(+), 13 deletions(-)
diff --git a/contrib/mm/m.tmac b/contrib/mm/m.tmac
index ff1813f84..55e6c8871 100644
--- a/contrib/mm/m.tmac
+++ b/contrib/mm/m.tmac
@@ -3499,19 +3499,14 @@ argument: '\\$2'
.de AE
\\*[debug@dump-args]\\
..
-.\" fixed for 2000, now uses \n[year].
-.de ISODATE
-. \" support for ISO-date
-. nr cov*mm \\n[mo]
-. nr cov*dd \\n[dy]
-. af cov*mm 01
-. af cov*dd 01
-. ie '0'\\$1' \{\
-. ds cov*new-date \\*[MO\\n[mo]] \\n[dy], \\n[year]
-. \}
-. el \{\
-. ds cov*new-date \\n[year]-\\n[cov*mm]-\\n[cov*dd]
-. \}
+.de cov*set-date
+.nr cov*mm \\n[mo]
+.nr cov*dd \\n[dy]
+.af cov*mm 01
+.af cov*dd 01
+.ie '0'\\$1' .ds cov*new-date \\*[MO\\n[mo]] \\n[dy], \\n[year]
+.el .ds cov*new-date \\n[year]-\\n[cov*mm]-\\n[cov*dd]
+.\}
..
.ISODATE 0
.als DT cov*new-date
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 21/25: contrib/mm/m.tmac (ISODATE): Fix code style nits.,
G. Branden Robinson <=