[BACK]Return to bs_man.in CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc / regress / roff / esc

File: [cvsweb.bsd.lv] / mandoc / regress / roff / esc / bs_man.in (download)

Revision 1.1, Thu Jan 17 06:33:35 2019 UTC (5 years, 5 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_14_6, VERSION_1_14_5, HEAD

Test handling of escaped backslashes because the code related to
copy mode is complicated and prone to regressions.

.\" $OpenBSD: bs_man.in,v 1.1 2019/01/17 06:29:14 schwarze Exp $
.TH ESC-BS_MAN 1 "January 17, 2019"
.SH NAME
esc-bs_man \- escaped backslashes in man(7) code
.SH DESCRIPTION
.ds usestr (initial)
.de testmac
prefix\*[usestr]suffix
prefix\\*[usestr]suffix
..
.ds teststr prefix\*[usestr]middle\\*[usestr]suffix
.ds usestr (later)
on a text line: prefix\\suffix
.PP
in a macro definition:
.testmac
.PP
in a string definition: \*[teststr]
.PP
in a high-level macro argument:
.IB prefix ##\\*[usestr]## suffix
.PP
.de argmac
{\\$1}
..
in a user-defined macro argument:
.argmac prefix\\*[usestr]suffix