From da6633e8c5db9f71ef2499ad46bc43e3854c2ac9 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Mon, 30 May 2022 23:03:47 +0000 Subject: 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. --- roff_escape.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'roff_escape.c') 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': -- cgit v1.2.3