aboutsummaryrefslogtreecommitdiff
path: root/test/writer.ms
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2018-10-22 23:47:14 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2018-10-22 23:48:12 -0700
commit261cbad0ef2f42735c3914c6c448f5f21331de14 (patch)
treefc4f2f2989020b63907cab3bedf6f1f8ede43caa /test/writer.ms
parent8b204dda775f0767056fefe5b18ac4a064b914c4 (diff)
downloadpandoc-261cbad0ef2f42735c3914c6c448f5f21331de14.tar.gz
Groff writers escaping changes.
- Improve escaping of accented characters with `--ascii`. Combining accents are now handled properly. - Don't escape spaces and tabs in code blocks. This doesn't seem to be necessary.
Diffstat (limited to 'test/writer.ms')
-rw-r--r--test/writer.ms32
1 files changed, 16 insertions, 16 deletions
diff --git a/test/writer.ms b/test/writer.ms
index 12a7fc778..40ecddb27 100644
--- a/test/writer.ms
+++ b/test/writer.ms
@@ -158,8 +158,8 @@ Code in a block quote:
.IP
.nf
\f[C]
-sub\ status\ {
-\ \ \ \ print\ \[dq]working\[dq];
+sub status {
+ print \[dq]working\[dq];
}
\f[]
.fi
@@ -194,13 +194,13 @@ Code:
.IP
.nf
\f[C]
-\-\-\-\-\ (should\ be\ four\ hyphens)
+\-\-\-\- (should be four hyphens)
-sub\ status\ {
-\ \ \ \ print\ \[dq]working\[dq];
+sub status {
+ print \[dq]working\[dq];
}
-this\ code\ block\ is\ indented\ by\ one\ tab
+this code block is indented by one tab
\f[]
.fi
.LP
@@ -208,9 +208,9 @@ And:
.IP
.nf
\f[C]
-\ \ \ \ this\ code\ block\ is\ indented\ by\ two\ tabs
+ this code block is indented by two tabs
-These\ should\ not\ be\ escaped:\ \ \[rs]$\ \[rs]\[rs]\ \[rs]>\ \[rs][\ \[rs]{
+These should not be escaped: \[rs]$ \[rs]\[rs] \[rs]> \[rs][ \[rs]{
\f[]
.fi
.HLINE
@@ -496,7 +496,7 @@ orange fruit
.IP
.nf
\f[C]
-{\ orange\ code\ block\ }
+{ orange code block }
\f[]
.fi
.RS
@@ -579,7 +579,7 @@ This should be a code block, though:
.nf
\f[C]
<div>
-\ \ \ \ foo
+ foo
</div>
\f[]
.fi
@@ -603,7 +603,7 @@ Code block:
.IP
.nf
\f[C]
-<!\-\-\ Comment\ \-\->
+<!\-\- Comment \-\->
\f[]
.fi
.LP
@@ -613,7 +613,7 @@ Code:
.IP
.nf
\f[C]
-<hr\ />
+<hr />
\f[]
.fi
.LP
@@ -704,7 +704,7 @@ Here’s one that has a line break in it: @alpha + omega times x sup 2@.
.LP
These shouldn’t be math:
.IP \[bu] 3
-To get the famous equation, write \f[C]$e\ =\ mc\[ha]2$\f[R].
+To get the famous equation, write \f[C]$e = mc\[ha]2$\f[R].
.IP \[bu] 3
$22,000 is a \f[I]lot\f[R] of money.
So is $34,000.
@@ -867,7 +867,7 @@ This should [not][] be a link.
.IP
.nf
\f[C]
-[not]:\ /url
+[not]: /url
\f[]
.fi
.LP
@@ -939,7 +939,7 @@ Auto\-links should not occur here: \f[C]<http://example.com/>\f[R]
.IP
.nf
\f[C]
-or\ here:\ <http://example.com/>
+or here: <http://example.com/>
\f[]
.fi
.HLINE
@@ -975,7 +975,7 @@ with list items).
.IP
.nf
\f[C]
-\ \ {\ <code>\ }
+ { <code> }
\f[]
.fi
.LP