diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2017-06-13 19:34:40 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2017-06-13 19:34:40 +0000 |
commit | 28aefcdcb96546f06ba44462300a9e7edaa5e9be (patch) | |
tree | 3c066807aadfef5ee75f853bf04465ef8596ccab /regress/man/RS/an-margin.in | |
parent | f4493a0401398099216efffb5687a8a698a1d20c (diff) | |
download | mandoc-28aefcdcb96546f06ba44462300a9e7edaa5e9be.tar.gz |
Partial support for the \n[an-margin] number register.
Manuals autogenerated from reStructuredText are reckless enough
to peek at this non-portable, implementation-dependent, highly
groff-specific internal register - for no good reason, because the
man(7) language natively provides in a much simpler way what they
are trying to emulate here with much fragility.
A full implementation would be very hard because it would require
access to output-device-specific formatting data at the roff(7)
preprocessor stage, which mandoc doesn't support at all.
So hardcode a few magic numbers as reStructuredText expects them
for terminal output. For other output modes (like HTML), code using
this register is utterly broken anyway.
Diffstat (limited to 'regress/man/RS/an-margin.in')
-rw-r--r-- | regress/man/RS/an-margin.in | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/regress/man/RS/an-margin.in b/regress/man/RS/an-margin.in new file mode 100644 index 00000000..b14b2cae --- /dev/null +++ b/regress/man/RS/an-margin.in @@ -0,0 +1,24 @@ +.TH RS-AN-MARGIN 1 "June 13, 2017" OpenBSD +.SH NAME +RS-an-margin \- reStructuredText peeks at an internal register +.SH DESCRIPTION +regular +text +.RS 0.0 +zero +indent +\n[an-margin] +.RS 3.5 +non-zero +indent +\n[an-margin] +.RE +back to +zero +indent +\n[an-margin] +.RE +back to +regular +text +\n[an-margin] |