Skip to content

Body text has always zero left indentation #16

@teake

Description

@teake

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions