File: fix-html5lib.serialize-call.patch

package info (click to toggle)
python-django-compressor 2.2-4
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 984 kB
  • sloc: python: 4,085; makefile: 145
file content (16 lines) | stat: -rw-r--r-- 579 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: Fix html5lib.serialize() call
Author: Thomas Goirand <zigo@debian.org>
Forwarded: no
Last-Update: 2017-10-28

--- python-django-compressor-2.2.orig/compressor/parser/html5lib.py
+++ python-django-compressor-2.2/compressor/parser/html5lib.py
@@ -16,7 +16,7 @@ class Html5LibParser(ParserBase):
 
     def _serialize(self, elem):
         return self.html5lib.serialize(
-            elem, tree="etree", quote_attr_values=True,
+            elem, tree="etree", quote_attr_values='legacy',
             omit_optional_tags=False, use_trailing_solidus=True,
         )