fnp
/
librarian.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Packaging fix.
[librarian.git]
/
librarian
/
embeds
/
mathml.py
diff --git
a/librarian/embeds/mathml.py
b/librarian/embeds/mathml.py
index
dd78f05
..
bd58baf
100644
(file)
--- a/
librarian/embeds/mathml.py
+++ b/
librarian/embeds/mathml.py
@@
-1,5
+1,8
@@
# -*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
+from __future__ import unicode_literals
+
from lxml import etree
from lxml import etree
+import six
from librarian import get_resource
from . import TreeEmbed, create_embed, downgrades_to
from librarian import get_resource
from . import TreeEmbed, create_embed, downgrades_to
@@
-9,4
+12,4
@@
class MathML(TreeEmbed):
def to_latex(self):
xslt = etree.parse(get_resource('res/embeds/mathml/mathml2latex.xslt'))
output = self.tree.xslt(xslt)
def to_latex(self):
xslt = etree.parse(get_resource('res/embeds/mathml/mathml2latex.xslt'))
output = self.tree.xslt(xslt)
- return create_embed('application/x-latex', data=
unicod
e(output))
+ return create_embed('application/x-latex', data=
six.text_typ
e(output))