git.iko.soy/typeable/pandoc
on master help sign in
Docx writer: insert space between footnote ref and footnote.

This matches Word's default behavior. Closes #2527.

commit593cbd8142d376635de93f0415d1022375689724 authorJohn MacFarlane <jgm@berkeley.edu> dateSun 15 Nov 2015, 07:53 (11 years ago) parent87f20f1
1 file changed+2−2
src/Text/Pandoc/Writers/Docx.hs+2−2
src/Text/Pandoc/Writers/Docx.hs+2−2
@@ -1070,8 +1070,8 @@ inlineToOpenXML opts (Note bs) = do
10701070 [ mknode "w:rPr" [] footnoteStyle
10711071 , mknode "w:footnoteRef" [] () ]
10721072 let notemarkerXml = RawInline (Format "openxml") $ ppElement notemarker
1073− let insertNoteRef (Plain ils : xs) = Plain (notemarkerXml : ils) : xs
1074− insertNoteRef (Para ils : xs) = Para (notemarkerXml : ils) : xs
1073+ let insertNoteRef (Plain ils : xs) = Plain (notemarkerXml : Space : ils) : xs
1074+ insertNoteRef (Para ils : xs) = Para (notemarkerXml : Space : ils) : xs
10751075 insertNoteRef xs = Para [notemarkerXml] : xs
10761076 oldListLevel <- gets stListLevel
10771077 oldParaProperties <- gets stParaProperties