Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Sebastien Robin
erp5
Commits
0fb3836d
Commit
0fb3836d
authored
Jul 12, 2021
by
Xiaowu Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_corporate_identity: down correctly header
parent
7008e27b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/WebPage_viewAsContract.py
...l_skins/erp5_corporate_identity/WebPage_viewAsContract.py
+2
-1
No files found.
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/WebPage_viewAsContract.py
View file @
0fb3836d
...
@@ -50,9 +50,10 @@ for header in re.findall("<h[1-6].*</h[1-6]>", contract_content or ""):
...
@@ -50,9 +50,10 @@ for header in re.findall("<h[1-6].*</h[1-6]>", contract_content or ""):
header_list
=
re
.
findall
(
"<(h[1-6]).*>"
,
header
)
header_list
=
re
.
findall
(
"<(h[1-6]).*>"
,
header
)
if
len
(
header_list
):
if
len
(
header_list
):
tag
=
header_list
[
0
]
tag
=
header_list
[
0
]
key
=
tag
[
1
]
contract_content
=
contract_content
.
replace
(
contract_content
=
contract_content
.
replace
(
header
,
header
,
header
.
replace
(
tag
,
'h
2'
)
header
.
replace
(
tag
,
'h
%s'
%
(
int
(
key
)
+
1
)
)
)
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment