diff --git a/README.txt b/README.txt index 607ef186509108fc44d0007772a55cfbe8117175..9ee9a67901ad1a046e297890140c87ebefb9710d 100644 --- a/README.txt +++ b/README.txt @@ -20,7 +20,7 @@ Il faudra fournir un fichier de style guide-style.protoxml à la racine du dossi <size>22</size> <font>TimesNewRomanPSMT</font> <alignment>NEAR</alignment> - <vertical_alignment>CENTER</vertical_alignment> + <vertical_alignment>NEAR</vertical_alignment> </text_attributes> <layout> diff --git a/data.py b/data.py index 4055f40350766a6631c61adebaf087809b4c2d52..bb0e816c58258a40245278189bd456f586ddc3db 100644 --- a/data.py +++ b/data.py @@ -39,6 +39,9 @@ class Image: layout.attrib["secondary_alignment"] = "CENTER" layout.attrib["gap"] = "0" layout.attrib["fit_content_height"] = "true" + top_mg = etree.Element("top_margin") + top_mg.text = "10" + layout.append(top_mg) el.append(layout) el.append(self.to_xml()) return el @@ -93,6 +96,8 @@ class TextContent(ParagraphContent): text = "" if clean: text = text.strip() + if text: + text += " " return text def get_href(self, clean = True):