aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/roff_escape.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2022-05-30 23:03:47 +0000
committerIngo Schwarze <schwarze@openbsd.org>2022-05-30 23:03:47 +0000
commitda6633e8c5db9f71ef2499ad46bc43e3854c2ac9 (patch)
treedc16ff25d96062244163d68f4ecdbe27a4f1f465 /roff_escape.c
parent47b136859c01b58c485871ddf294a613d823ece4 (diff)
downloadmandoc-da6633e8c5db9f71ef2499ad46bc43e3854c2ac9.tar.gz
mandoc-da6633e8c5db9f71ef2499ad46bc43e3854c2ac9.tar.zst
mandoc-da6633e8c5db9f71ef2499ad46bc43e3854c2ac9.zip
Dummy implementation of the roff(7) \V (interpolate environment variable)
escape sequence. This is needed to get \V into the correct parsing class, ESCAPE_EXPAND. It is intentional that mandoc(1) output is *not* influenced by environment variables, so interpolate the name of the variable with some decorating punctuation rather than interpolating its value.
Diffstat (limited to 'roff_escape.c')
-rw-r--r--roff_escape.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/roff_escape.c b/roff_escape.c
index fb7b92ed..51e3d897 100644
--- a/roff_escape.c
+++ b/roff_escape.c
@@ -157,13 +157,13 @@ roff_escape(const char *buf, const int ln, const int aesc,
case '$':
case '*':
+ case 'V':
case 'n':
rval = ESCAPE_EXPAND;
break;
case 'F':
case 'M':
case 'O':
- case 'V':
case 'Y':
case 'g':
case 'k':