fixed SCRIPT(ASSIGNJS(foo=bar)), thanks Paolo Pastori
This commit is contained in:
1 parent
7427258b90
commit
ba30988580
2 files changed
+5
-3
No files matched your search
+4
-2
@@ -1450,8 +1450,10 @@ class SCRIPT(DIV):
|
|||||||
(fa, co) = self._xml()
|
(fa, co) = self._xml()
|
||||||
fa = to_bytes(fa)
|
fa = to_bytes(fa)
|
||||||
# no escaping of subcomponents
|
# no escaping of subcomponents
|
||||||
co = b'\n'.join([to_bytes(component) for component in
|
co = b'\n'.join(map(to_bytes,
|
||||||
self.components])
|
# allow xml components (i.e. ASSIGNJS)
|
||||||
|
map(lambda c: c.xml() if hasattr(c, 'xml') and callable(c.xml) else c,
|
||||||
|
self.components)))
|
||||||
if co:
|
if co:
|
||||||
# <script [attributes]><!--//--><![CDATA[//><!--
|
# <script [attributes]><!--//--><![CDATA[//><!--
|
||||||
# script body
|
# script body
|
||||||
|
|||||||
+1
-1
Submodule gluon/packages/dal updated: 651afafcf5...2d878d63bc.
Reference in new issue
Block a user