If you specify a style file that has a Body Text style with a non-zero left indentation (say 0,63 cm), the output docx file will have all paragraphs with zero left indentation (namely with style Body Text + Left 0 cm). A minimal rst will such as the following will do the trick:
================
This is a header
================
This is a bit of body text.
This is because the paragraph visitor makes new paragraphs with Contenxt objects that have explicitly zero indentation.
If I set the indent to None in the Paragraph constructor I do get the correct style, but that seems a bit like a hack and I'm not sure what else that will break.
If you specify a style file that has a
Body Textstyle with a non-zero left indentation (say 0,63 cm), the output docx file will have all paragraphs with zero left indentation (namely with styleBody Text + Left 0 cm). A minimalrstwill such as the following will do the trick:This is because the paragraph visitor makes new paragraphs with
Contenxtobjects that have explicitly zero indentation.If I set the indent to
Nonein theParagraphconstructor I do get the correct style, but that seems a bit like a hack and I'm not sure what else that will break.