diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2018-08-16 13:54:06 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2018-08-16 13:54:06 +0000 |
commit | 27f1545e0f756e82e793a38e1bc5a55d673a6261 (patch) | |
tree | aec0540f62f2ddaaf8ca6abc5d05a59cd47da072 /mandoc.c | |
parent | 53895dc947dd04e38242df7ec586e07b9b14ba99 (diff) | |
download | mandoc-27f1545e0f756e82e793a38e1bc5a55d673a6261.tar.gz |
Implement the \*(.T predefined string (interpolate device name)
by allowing the preprocessor to pass it through to the formatters.
Used for example by the groff_char(7) manual page.
Diffstat (limited to 'mandoc.c')
-rw-r--r-- | mandoc.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -139,6 +139,13 @@ mandoc_escape(const char **end, const char **start, int *sz) break; } break; + case '*': + if (strncmp(*start, "(.T", 3) != 0) + abort(); + gly = ESCAPE_DEVICE; + *start = ++*end; + *sz = 2; + break; /* * These escapes are of the form \X'Y', where 'X' is the trigger |