aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/regress/man/RS/an-margin.out_ascii
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2017-06-13 19:34:40 +0000
committerIngo Schwarze <schwarze@openbsd.org>2017-06-13 19:34:40 +0000
commit3352a8e9bd0f6a0666c5dcb84ccdb5536471d280 (patch)
tree7e1a05bb64c2b95a6e4932ee9443151fd48ff660 /regress/man/RS/an-margin.out_ascii
parenta03895d16836ec105b7b21d6333f6b137f1d349e (diff)
downloadmandoc-3352a8e9bd0f6a0666c5dcb84ccdb5536471d280.tar.gz
mandoc-3352a8e9bd0f6a0666c5dcb84ccdb5536471d280.tar.zst
mandoc-3352a8e9bd0f6a0666c5dcb84ccdb5536471d280.zip
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.out_ascii')
-rw-r--r--regress/man/RS/an-margin.out_ascii17
1 files changed, 17 insertions, 0 deletions
diff --git a/regress/man/RS/an-margin.out_ascii b/regress/man/RS/an-margin.out_ascii
new file mode 100644
index 00000000..be41d4ec
--- /dev/null
+++ b/regress/man/RS/an-margin.out_ascii
@@ -0,0 +1,17 @@
+RS-AN-MARGIN(1) General Commands Manual RS-AN-MARGIN(1)
+
+
+
+NNAAMMEE
+ RS-an-margin - reStructuredText peeks at an internal register
+
+DDEESSCCRRIIPPTTIIOONN
+ regular text
+ zero indent 168
+ non-zero indent 252
+ back to zero indent 168
+ back to regular text 168
+
+
+
+OpenBSD June 13, 2017 RS-AN-MARGIN(1)