groff-commit
[Top][All Lists]
Advanced

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

[groff] 05/14: [mdoc]: Trivially refactor (`ua` and \[ha]).


From: G. Branden Robinson
Subject: [groff] 05/14: [mdoc]: Trivially refactor (`ua` and \[ha]).
Date: Thu, 22 Feb 2024 17:49:15 -0500 (EST)

gbranden pushed a commit to branch master
in repository groff.

commit 85c047fcb04ceb7a9cb36806a354d7431aa278f4
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Wed Feb 21 13:30:26 2024 -0600

    [mdoc]: Trivially refactor (`ua` and \[ha]).
    
    * tmac/mdoc/doc-nroff (ua): Define string as `ha` special character, not
      "^".  This is (probably) a matter only of pedantic correctness, as
      this definition takes place only in the "else" block of a conditional
      testing for the "utf8" output device, and no other supported
      nroff-mode device renders "^" surprisingly to ASCII nostalgics.
---
 ChangeLog           | 9 +++++++++
 tmac/mdoc/doc-nroff | 2 +-
 2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 5687abcf5..5e39ad0dc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2024-02-21  G. Branden Robinson <g.branden.robinson@gmail.com>
+
+       * tmac/mdoc/doc-nroff (ua): Define string as `ha` special
+       character, not "^".  This is (probably) a matter only of
+       pedantic correctness, as this definition takes place only in the
+       "else" block of a conditional testing for the "utf8" output
+       device, and no other supported nroff-mode device renders "^"
+       surprisingly to ASCII nostalgics.
+
 2024-02-20  Lennart Jablonka <humm@ljabl.com>
 
        * src/preproc/eqn/main.cpp: This file includes header
diff --git a/tmac/mdoc/doc-nroff b/tmac/mdoc/doc-nroff
index b9ab48a83..2226b5754 100644
--- a/tmac/mdoc/doc-nroff
+++ b/tmac/mdoc/doc-nroff
@@ -147,7 +147,7 @@
 .  ds If \[if]
 .\}
 .el \{\
-.  ds ua ^
+.  ds ua \[ha]
 .  ds Pi pi
 .  ds If infinity
 .\}



reply via email to

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