Permalink
Browse files

Convert xml-protected spaces to real spaces

Because they can disturb later processing. See #9.
  • Loading branch information...
root
root committed Sep 28, 2017
1 parent 1488cae commit 56b945e7304b899db78a658cc7c60a3c9afd984d
Showing with 2 additions and 0 deletions.
  1. +2 −0 odt2txt.c
View
@@ -465,6 +465,8 @@ static void format_doc(STRBUF *buf, int raw_input)
/* remove soft-page-breaks. We don't need them and they may disturb later decoding */
RS_G("<text:soft-page-break/>", "");
/* same for xml-protected spaces */
RS_G("<text:s/>", " ");
/* headline, first level */
RS_E("<text:h[^>]*outline-level=\"1\"[^>]*>([^<]*)<[^>]*>", &h1);

0 comments on commit 56b945e

Please sign in to comment.