Skip to content
Snippets Groups Projects
Commit 3cb60100 authored by Alexis Filipozzi's avatar Alexis Filipozzi
Browse files

top margin on image

parent 78f8b819
No related branches found
No related tags found
No related merge requests found
......@@ -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>
......
......@@ -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):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment