diff --git a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebPage_exportAsSingleFile.py b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebPage_exportAsSingleFile.py index c5858358fee0539569ac6d0a3977c19a8818304a..d74198aee12af12dc56ac43a7d94f8094e65bd6c 100644 --- a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebPage_exportAsSingleFile.py +++ b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebPage_exportAsSingleFile.py @@ -69,6 +69,9 @@ def handleHtmlTag(tag, attrs): 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]) + for i in range(len(attrs)): + if attrs[i][0] == "style": + attrs[i] = attrs[i][0], replaceCssUrl(attrs[i][1]) return tag, attrs def strHtmlPart(part): diff --git a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebPage_extractReferredObjectDict.py b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebPage_extractReferredObjectDict.py index b12730af0d75663bb59d2b31763a043c6796815b..d83532432c5866c2030bb21b81c02d55a13d22ae 100644 --- a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebPage_extractReferredObjectDict.py +++ b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebPage_extractReferredObjectDict.py @@ -31,6 +31,10 @@ def handleHtmlTag(tag, attrs): for i in range(len(attrs)): if attrs[i][0] in ("src", "href"): handleHref(attrs[i][1]) + for i in range(len(attrs)): + if attrs[i][0] == "style": + handleCss(attrs[i][1]) + on_next_data = [lambda x: x] def handleHtmlPart(part):