groff-commit
[Top][All Lists]
Advanced

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

[groff] 07/10: [troff]: Map \[ti] correctly in \X escapes.


From: G. Branden Robinson
Subject: [groff] 07/10: [troff]: Map \[ti] correctly in \X escapes.
Date: Sat, 30 Oct 2021 19:26:34 -0400 (EDT)

gbranden pushed a commit to branch master
in repository groff.

commit 3d1988cabc90f3c4b0b0000bb4a809be61eeba3c
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Sat Oct 30 15:48:42 2021 +1100

    [troff]: Map \[ti] correctly in \X escapes.
    
    [troff]: Map \[ti] correctly in device control escape sequences.
    
    * src/roff/troff/input.cpp (encode_char): Fix copy-and-paste error.
      \[ti] should put '~', not '^', into a device control command.
    
    Fixes <https://savannah.gnu.org/bugs/?61403>; problem introduced
    by me in commit 9d61b3d1, 1 October.
---
 ChangeLog                | 11 +++++++++++
 src/roff/troff/input.cpp |  2 +-
 2 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 289ba2d..cef7428 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,16 @@
 2021-10-30  G. Branden Robinson <g.branden.robinson@gmail.com>
 
+       [troff]: Map \[ti] correctly in device control escape sequences.
+
+       * src/roff/troff/input.cpp (encode_char): Fix copy-and-paste
+       error.  \[ti] should put '~', not '^', into a device control
+       command.
+
+       Fixes <https://savannah.gnu.org/bugs/?61403>; problem introduced
+       by me in commit 9d61b3d1, 1 October.
+
+2021-10-30  G. Branden Robinson <g.branden.robinson@gmail.com>
+
        [man]: Handle degenerate input quietly.
 
        * tmac/an.tmac (TH): Define new register `an-TH-was-called`.
diff --git a/src/roff/troff/input.cpp b/src/roff/troff/input.cpp
index a823c32..7f31f9e 100644
--- a/src/roff/troff/input.cpp
+++ b/src/roff/troff/input.cpp
@@ -5429,7 +5429,7 @@ static void encode_char(macro *mac, char c)
       else if (strcmp("rs", sc) == 0)
        mac->append('\\');
       else if (strcmp("ti", sc) == 0)
-       mac->append('^');
+       mac->append('~');
       else
        error("special character '%1' cannot be used within device"
              " control escape sequence", sc);



reply via email to

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