From 86142ab7c01c2dbb37129fdf3abe51572cfa5c92 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Thu, 23 Mar 2017 14:33:29 +0100 Subject: Updated ms tests. --- test/writer.ms | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) (limited to 'test/writer.ms') diff --git a/test/writer.ms b/test/writer.ms index 17bd033b4..ec97f3f88 100644 --- a/test/writer.ms +++ b/test/writer.ms @@ -2,6 +2,16 @@ .EQ delim || .EN +\" From https://lists.gnu.org/archive/html/groff/2012-07/msg00046.html +\" Superscripts (ex tmac.e) (current versions without extra line space) +.\" (reinstate commented versions to restore extra line space) +.\" .ds { \v'-0.3m'\x'-0.2m'\\s[\\n[.s]*8u/10u] +.ds { \v'-0.3m'\\s[\\n[.s]*9u/12u] +.ds } \s0\v'0.3m' +.\" Subscripts +.\" .ds < \v'0.3m'\x'0.2m'\s[\\n[.s]*8u/10u] +.ds < \v'0.3m'\s[\\n[.s]*9u/12u] +.ds > \s0\v'-0.3m' .TL Pandoc Test Suite .AU @@ -576,9 +586,9 @@ This is code: \f[C]>\f[], \f[C]$\f[], \f[C]\\\f[], \f[C]\\$\f[], .LP [STRIKEOUT:This is \f[I]strikeout\f[].] .LP -Superscripts: a^bc^d a^\f[I]hello\f[]^ a^hello\ there^. +Superscripts: a\*{bc\*}d a\*{\f[I]hello\f[]\*} a\*{hello\ there\*}. .LP -Subscripts: H~2~O, H~23~O, H~many\ of\ them~O. +Subscripts: H\*<2\*>O, H\*<23\*>O, H\*O. .LP These should not be superscripts or subscripts, because of the unescaped spaces: a^b c^d, a~b c~d. @@ -838,18 +848,18 @@ Here's an inline link in pointy braces\**. .SH 2 Autolinks .LP -With an ampersand: +With an ampersand: http://example.com/?foo=1&bar=2 .IP \[bu] 2 In a list? .IP \[bu] 2 - +http://example.com/ .IP \[bu] 2 It should. .LP -An e\-mail address: +An e\-mail address: nobody\@nowhere.net .RS .LP -Blockquoted: +Blockquoted: http://example.com/ .RE .LP Auto\-links should not occur here: \f[C]\f[] -- cgit v1.2.3