jdum / odfdo

python library for OpenDocument format (ODF)
Apache License 2.0
48 stars 11 forks source link

border and padding attributes are ignored when style is used for text_frame #16

Open telkamp opened 3 years ago

telkamp commented 3 years ago

The border and padding attributes are ignored when the style is used for a text_frame (Frame.text_frame). I seems that these attributes can only be used for table-cells, see https://github.com/jdum/odfdo/blob/master/odfdo/style.py#L461

Workaround: Define fo attributes directly using **{"fo:border": "none", "fo:padding": "0cm"}