Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
html2protoxml
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alexis Filipozzi
html2protoxml
Commits
3cb60100
Commit
3cb60100
authored
8 years ago
by
Alexis Filipozzi
Browse files
Options
Downloads
Patches
Plain Diff
top margin on image
parent
78f8b819
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.txt
+1
-1
1 addition, 1 deletion
README.txt
data.py
+5
-0
5 additions, 0 deletions
data.py
with
6 additions
and
1 deletion
README.txt
+
1
−
1
View file @
3cb60100
...
...
@@ -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>
CENTE
R</vertical_alignment>
<vertical_alignment>
NEA
R</vertical_alignment>
</text_attributes>
<layout>
...
...
This diff is collapsed.
Click to expand it.
data.py
+
5
−
0
View file @
3cb60100
...
...
@@ -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
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment