Skip to content

Commit 750d9f2

Browse files
author
Todd Whiteman
committed
addons: sbsdiff: force html charset encoding to utf-8
git-svn-id: http://svn.openkomodo.com/repos/addons/sbsdiff@10700 b87d16e7-d29f-4ee1-b5ec-817d645d335f
1 parent 73b975c commit 750d9f2

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

README.txt

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Building:
2+
3+
koext build --unjarred
4+

install.rdf

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<em:unpack>true</em:unpack>
99
<em:id>[email protected]</em:id>
1010
<em:name>Side by Side Diffs</em:name>
11-
<em:version>0.2.3</em:version>
11+
<em:version>0.2.4</em:version>
1212
<em:description>Provide side-by-side diffs in Komodo.</em:description>
1313
<em:creator>Todd Whiteman</em:creator>
1414
<em:iconURL>chrome://sbsdiff/content/sbsdiff.png</em:iconURL>

pylib/sbs_diff_helper.py

+9-1
Original file line numberDiff line numberDiff line change
@@ -622,9 +622,17 @@ def toHTML(self):
622622
from django.core.management import setup_environ
623623
from django.template.loader import render_to_string
624624
setup_environ(reviewboard.settings)
625-
return render_to_string('diffviewer/diff_file_fragment.html',
625+
# Force encoding to "utf-8".
626+
html = """<!doctype html>
627+
<head>
628+
<meta charset="utf-8" />
629+
</head>
630+
631+
"""
632+
html += render_to_string('diffviewer/diff_file_fragment.html',
626633
{ 'file': self,
627634
'collapseall': True })
635+
return html
628636

629637

630638

0 commit comments

Comments
 (0)