Docx writer: Change FigureWithCaption to CaptionedFigure (#3658)
Edit styles.xml as part of the fix for #3656
commitb9185b02162ea56ee685594e1c5cfb816e796754
authorIan <iandol@users.noreply.github.com>
dateFri 19 May 2017, 04:34 (9 years ago)
parent0f6458c
data/docx/word/styles.xml+2−2
@@ -400,8 +400,8 @@
400400 <w:name w:val="Figure" />
401401 <w:basedOn w:val="Normal" />
402402 </w:style>
403− <w:style w:type="paragraph" w:customStyle="1" w:styleId="FigureWithCaption">
404− <w:name w:val="Figure with Caption" />
403+ <w:style w:type="paragraph" w:customStyle="1" w:styleId="CaptionedFigure">
404+ <w:name w:val="Captioned Figure" />
405405 <w:basedOn w:val="Figure" />
406406 <w:pPr>
407407 <w:keepNext />
src/Text/Pandoc/Writers/Docx.hs+1−1
@@ -875,7 +875,7 @@ blockToOpenXML' opts (Para [Image attr alt (src,'f':'i':'g':':':tit)]) = do
875875 let prop = pCustomStyle $
876876 if null alt
877877 then "Figure"
878− else "FigureWithCaption"
878+ else "CaptionedFigure"
879879 paraProps <- local (\env -> env { envParaProperties = prop : envParaProperties env }) (getParaProps False)
880880 contents <- inlinesToOpenXML opts [Image attr alt (src,tit)]
881881 captionNode <- withParaProp (pCustomStyle "ImageCaption")