- sanitizing the xml chars

This commit is contained in:
ari committed 2018-11-21 09:19:33 -05:00
1 parent d74bf1eaa9
commit ac49ad1bcf
4 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -1 +1 @@
v1.1.9 v1.1.10
+1 -1
View File
@@ -86,7 +86,7 @@ OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
""" """
__version__ = (1, 1, 9) __version__ = (1, 1, 10)
if __name__ == '__main__': if __name__ == '__main__':
print( print(
+1 -1
View File
@@ -131,7 +131,7 @@ class XMLConverter(PDFConverter):
'y0': char.y0, 'y0': char.y0,
'y1': char.y1, 'y1': char.y1,
}, no_additional_char=True): }, no_additional_char=True):
self.write(char.get_text(), lineend='', deep_space="") self.write(saxutils.escape(char.get_text()), lineend='', deep_space="")
def render_char_block(self, char_block: LTCharBlock): def render_char_block(self, char_block: LTCharBlock):
attr = { attr = {
+1 -1
View File
@@ -10,7 +10,7 @@ import sys
with open('README.md') as readme_file: with open('README.md') as readme_file:
SETUP = { SETUP = {
"name": "pdfmajor", "name": "pdfmajor",
"version": "1.1.9", "version": "1.1.10",
"packages": find_packages(include=['pdfmajor*']), "packages": find_packages(include=['pdfmajor*']),
"install_requires": [ "install_requires": [
'pycryptodome', 'pycryptodome',