File: calls-self.html5lib.serialize-with-correct-param.patch

package info (click to toggle)
python-django-compressor 2.1-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 996 kB
  • ctags: 856
  • sloc: python: 3,986; makefile: 145
file content (17 lines) | stat: -rw-r--r-- 641 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Description: Calls self.html5lib.serialize with correct param
Author: Thomas Goirand <zigo@debian.org>
Bug-Debian: https://bugs.debian.org/844921
Forwarded: no
Last-Update: 2016-12-13

--- python-django-compressor-2.1.orig/compressor/parser/html5lib.py
+++ python-django-compressor-2.1/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,
         )