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
Labels
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Jérome Perrin
erp5
Commits
7933f41f
Commit
7933f41f
authored
Oct 01, 2019
by
Xiaowu Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_web: do not make page anchors absolute
parent
d2faf2d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/Base_convertHtmlToSingleFile.py
...tem/portal_skins/erp5_web/Base_convertHtmlToSingleFile.py
+3
-1
No files found.
bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/Base_convertHtmlToSingleFile.py
View file @
7933f41f
...
...
@@ -63,7 +63,9 @@ def handleHtmlTag(tag, attrs):
else
:
for
i
in
range
(
len
(
attrs
)):
if
attrs
[
i
][
0
]
==
"href"
or
attrs
[
i
][
0
]
==
"src"
:
attrs
[
i
]
=
attrs
[
i
][
0
],
makeHrefAbsolute
(
attrs
[
i
][
1
])
# do not make page anchors absolute
if
attrs
[
i
][
1
]
!=
""
and
attrs
[
i
][
1
][
0
]
!=
"#"
:
attrs
[
i
]
=
attrs
[
i
][
0
],
makeHrefAbsolute
(
attrs
[
i
][
1
])
for
i
in
range
(
len
(
attrs
)):
if
attrs
[
i
][
0
]
==
"style"
:
attrs
[
i
]
=
attrs
[
i
][
0
],
replaceCssUrl
(
attrs
[
i
][
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