Error with styles
Brought to you by:
paultremblay
Hello !
It's me again ! :)
I've got a problem with the styles : the parser skip
some styles in some cases. In fact only the "heading"
styles.
I've joined a small document with 3 titles (heading 1,2
and 3) but the "heading 2" is skipped ! In fact there
is no "paragraph-definition" as it should be :
paragraph-definition name="heading 2"
However if i remove the title and retype it, the bug
disappears ! It must be a case the parser missed i
think ... :(
It would really helped me if you find some answer ! :)
Thank you very much for your great work ! ;)
document with bad title's style recognition
Logged In: YES
user_id=1538542
I join my xml output file.
Some technical informations : the parser is executed under
XP, the latest version of Python, rtf2xml 1.33 with the
following command on a cmd shell :
"C:\Python24\python.exe" -O
"<path1>\build\scripts-2.4\rtf2xml" --indent 1 --no-lists
--empty-para --no-group-borders --group-styles
--no-headings-to-sections "<path2>\title_test.rtf" >
"<path2>\title_test.xml"
pretty printed xml output
Logged In: YES
user_id=1538542
I've found some kind of answer : if you remove the bookmark
elements in the given rtf, the problem is solved !
There are 2 '\*\bkmkend' and 2 '\*\bkmkend' markups to remove.
Strange ... Have you got any ideas to explain that behaviour
? :)
Thx
Filed at https://gitlab.com/mcepl/rtf2xml/issues/2 ... not that I would promise to fix it, but this project seems to be quite dead, so pushing whole project to modern repository won't hurt much.