Commit 52b6031d authored by Jean-Paul Smets's avatar Jean-Paul Smets

Better support of base URL

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@25566 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 71ec9b7d
...@@ -240,6 +240,7 @@ class TextDocument(Document, TextContent): ...@@ -240,6 +240,7 @@ class TextDocument(Document, TextContent):
Returns the content base URL based on the actual content Returns the content base URL based on the actual content
(in HTML) (in HTML)
""" """
if self.hasBaseData():
html = self._asHTML() html = self._asHTML()
base_list = re.findall(self.base_parser, str(html)) base_list = re.findall(self.base_parser, str(html))
if base_list: if base_list:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment