diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2021-04-13 19:11:28 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2021-04-13 19:11:28 -0700 |
commit | cce839658782c242501658f4327434126f4f4868 (patch) | |
tree | f216e7010aa16a3e93d3aed61b84673df503e3ee | |
parent | 05cb25a4a61c897ef7addfedfed4d6e054194c9d (diff) | |
download | man-cce839658782c242501658f4327434126f4f4868.tar.gz man-cce839658782c242501658f4327434126f4f4868.tar.bz2 man-cce839658782c242501658f4327434126f4f4868.zip |
Implement \[xy] syntax for character codes.
-rw-r--r-- | man2html/man2html.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/man2html/man2html.c b/man2html/man2html.c index 05090c3..8f9b0e5 100644 --- a/man2html/man2html.c +++ b/man2html/man2html.c @@ -636,11 +636,13 @@ scan_escape(char *c) { case 'u': case '\n': case '&': h=""; break; - case '(': + case '(': case '[': c++; i= c[0]*256+c[1]; c++; h = expand_char(i); + if (c[-2] == '[') + c++; break; case '*': c++; |