From a0af594e16544a5339603da0e4d67c622a760a8c Mon Sep 17 00:00:00 2001 From: "Marshall T. Vandegrift" Date: Mon, 11 Aug 2008 16:32:27 -0400 Subject: [PATCH] Implement #942 (Add markup pretty-printing option to 'lit2oeb') --- src/calibre/ebooks/lit/reader.py | 29 ++++++++++++++++++++++++----- 1 file changed, 24 insertions(+), 5 deletions(-) diff --git a/src/calibre/ebooks/lit/reader.py b/src/calibre/ebooks/lit/reader.py index b2effb60b9..b76f6fb4f0 100644 --- a/src/calibre/ebooks/lit/reader.py +++ b/src/calibre/ebooks/lit/reader.py @@ -10,6 +10,7 @@ __copyright__ = '2008, Kovid Goyal ' \ import sys, struct, cStringIO, os import functools import re +from lxml import etree from calibre.ebooks.lit import LitError from calibre.ebooks.lit.maps import OPF_MAP, HTML_MAP import calibre.ebooks.lit.mssha1 as mssha1 @@ -17,6 +18,8 @@ from calibre import plugins lzx, lxzerror = plugins['lzx'] msdes, msdeserror = plugins['msdes'] +XML_DECL = """ +""" OPF_DECL = """