git.iko.soy/typeable/pandoc
on master help sign in
Ms writer: use .QS/.QE instead of .RS/.RE for block quotes.
commit2ab83a56e60227339c8c0064988d1264606bfed0 authorJohn MacFarlane <jgm@berkeley.edu> dateFri 6 Mar 2020, 09:45 (7 years ago) parentaaf2965
2 files changed+15−15
src/Text/Pandoc/Writers/Ms.hs+1−1 test/writer.ms+14−14
src/Text/Pandoc/Writers/Ms.hs+1−1
@@ -216,7 +216,7 @@ blockToMs opts (BlockQuote blocks) = do
216216 setFirstPara
217217 contents <- blockListToMs opts blocks
218218 setFirstPara
219− return $ literal ".RS" $$ contents $$ literal ".RE"
219+ return $ literal ".QS" $$ contents $$ literal ".QE"
220220blockToMs opts (Table caption alignments widths headers rows) =
221221 let aligncode AlignLeft = "l"
222222 aligncode AlignRight = "r"
test/writer.ms+14−14
@@ -150,12 +150,12 @@ Block Quotes
150150.pdfhref M "block-quotes"
151151.LP
152152E-mail style:
153−.RS
153+.QS
154154.LP
155155This is a block quote.
156156It is pretty short.
157−.RE
158−.RS
157+.QE
158+.QS
159159.LP
160160Code in a block quote:
161161.IP
@@ -174,15 +174,15 @@ item one
174174item two
175175.LP
176176Nested block quotes:
177−.RS
177+.QS
178178.LP
179179nested
180−.RE
181−.RS
180+.QE
181+.QS
182182.LP
183183nested
184−.RE
185−.RE
184+.QE
185+.QE
186186.LP
187187This should not be a block quote: 2 > 1.
188188.PP
@@ -502,10 +502,10 @@ orange fruit
502502{ orange code block }
503503\f[]
504504.fi
505−.RS
505+.QS
506506.LP
507507orange block quote
508−.RE
508+.QE
509509.RE
510510.LP
511511Multiple definitions, tight:
@@ -930,13 +930,13 @@ An e-mail address: \c
930930.pdfhref W -D "mailto:nobody%40nowhere.net" -A "\c" \
931931 -- "nobody\[at]nowhere.net"
932932\&
933−.RS
933+.QS
934934.LP
935935Blockquoted: \c
936936.pdfhref W -D "http://example.com/" -A "\c" \
937937 -- "http://example.com/"
938938\&
939−.RE
939+.QE
940940.LP
941941Auto-links should not occur here: \f[C]<http://example.com/>\f[R]
942942.IP
@@ -994,13 +994,13 @@ Inline notes may contain \c
994994 -- "links"
995995\& and \f[C]]\f[R] verbatim characters, as well as [bracketed text].
996996.FE
997−.RS
997+.QS
998998.LP
999999Notes can go in quotes.\**
10001000.FS
10011001In quote.
10021002.FE
1003−.RE
1003+.QE
10041004.IP " 1." 4
10051005And in list items.\**
10061006.FS