mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Activate RTF debug
This commit is contained in:
parent
428fcdd141
commit
9e31d70669
@ -117,8 +117,8 @@ class RTFInput(InputFormatPlugin):
|
|||||||
empty_paragraphs = 1,
|
empty_paragraphs = 1,
|
||||||
|
|
||||||
#debug
|
#debug
|
||||||
# deb_dir = "D:\\Mes eBooks\\Developpement\\debug\\rtfdebug",
|
deb_dir = "D:\\Mes eBooks\\Developpement\\debug\\rtfdebug",
|
||||||
# run_level = 3
|
run_level = 3
|
||||||
)
|
)
|
||||||
parser.parse_rtf()
|
parser.parse_rtf()
|
||||||
ans = open('out.xml').read()
|
ans = open('out.xml').read()
|
||||||
@ -260,8 +260,8 @@ class RTFInput(InputFormatPlugin):
|
|||||||
raise ValueError(_('This RTF file has a feature calibre does not '
|
raise ValueError(_('This RTF file has a feature calibre does not '
|
||||||
'support. Convert it to HTML first and then try it.\n%s')%e)
|
'support. Convert it to HTML first and then try it.\n%s')%e)
|
||||||
|
|
||||||
# with open('dataxml.xml', 'w') as dataxml:
|
with open('dataxml.xml', 'w') as dataxml:
|
||||||
# dataxml.write(xml)
|
dataxml.write(xml)
|
||||||
|
|
||||||
d = glob.glob(os.path.join('*_rtf_pict_dir', 'picts.rtf'))
|
d = glob.glob(os.path.join('*_rtf_pict_dir', 'picts.rtf'))
|
||||||
if d:
|
if d:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user