From 9e31d706693e4875ea36f80601b015e812d4a862 Mon Sep 17 00:00:00 2001 From: Sengian Date: Thu, 6 Jan 2011 09:00:49 +0100 Subject: [PATCH] Activate RTF debug --- src/calibre/ebooks/rtf/input.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/calibre/ebooks/rtf/input.py b/src/calibre/ebooks/rtf/input.py index 19f944bbb5..05c851a075 100644 --- a/src/calibre/ebooks/rtf/input.py +++ b/src/calibre/ebooks/rtf/input.py @@ -117,8 +117,8 @@ class RTFInput(InputFormatPlugin): empty_paragraphs = 1, #debug - # deb_dir = "D:\\Mes eBooks\\Developpement\\debug\\rtfdebug", - # run_level = 3 + deb_dir = "D:\\Mes eBooks\\Developpement\\debug\\rtfdebug", + run_level = 3 ) parser.parse_rtf() ans = open('out.xml').read() @@ -260,8 +260,8 @@ class RTFInput(InputFormatPlugin): raise ValueError(_('This RTF file has a feature calibre does not ' 'support. Convert it to HTML first and then try it.\n%s')%e) - # with open('dataxml.xml', 'w') as dataxml: - # dataxml.write(xml) + with open('dataxml.xml', 'w') as dataxml: + dataxml.write(xml) d = glob.glob(os.path.join('*_rtf_pict_dir', 'picts.rtf')) if d: