converter: Fix XML syntax
parent
2231f0892e
commit
94f3d61bb2
|
@ -520,7 +520,7 @@ class XMLConverter(PDFConverter):
|
||||||
render(child)
|
render(child)
|
||||||
self.write('</textbox>\n')
|
self.write('</textbox>\n')
|
||||||
elif isinstance(item, LTChar):
|
elif isinstance(item, LTChar):
|
||||||
self.write('<text font="%s" bbox="%s" colourspace="%s" ncolour=%s" size="%.3f">' %
|
self.write('<text font="%s" bbox="%s" colourspace="%s" ncolour="%s" size="%.3f">' %
|
||||||
(enc(item.fontname, None), bbox2str(item.bbox),
|
(enc(item.fontname, None), bbox2str(item.bbox),
|
||||||
item.ncs.name, item.graphicstate.ncolor, item.size))
|
item.ncs.name, item.graphicstate.ncolor, item.size))
|
||||||
self.write_text(item.get_text())
|
self.write_text(item.get_text())
|
||||||
|
|
Loading…
Reference in New Issue