[Python-modules-commits] [python-odf] 78/118: Minor cleanup
Wolfgang Borgert
debacle at moszumanska.debian.org
Fri Oct 3 21:27:25 UTC 2014
This is an automated email from the git hooks/post-receive script.
debacle pushed a commit to reference refs/remotes/upstream/master
in repository python-odf.
commit b4ed7a1be5dcc10a57d0da8df26f96909691783c
Author: Søren Roug <soren.roug at eea.europa.eu>
Date: Mon Mar 22 22:05:16 2010 +0000
Minor cleanup
---
contrib/odf2epub/odf2epub | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/contrib/odf2epub/odf2epub b/contrib/odf2epub/odf2epub
index fb02b51..b293abf 100755
--- a/contrib/odf2epub/odf2epub
+++ b/contrib/odf2epub/odf2epub
@@ -51,14 +51,13 @@ class EPublication:
</metadata>
<manifest>
<item id="ncx" href="toc.ncx" media-type="application/x-dtbncx+xml"/>
- <item id="book.xhtml" href="book.xhtml" media-type="application/xhtml+xml"/>
-"""
+ <item id="book.xhtml" href="book.xhtml" media-type="application/xhtml+xml"/>"""
+
content_opf_foot = """</manifest>
<spine toc="ncx">
<itemref idref="book.xhtml"/>
</spine>
-</package>
-"""
+</package>"""
toc_ncx = """<?xml version="1.0"?>
<!DOCTYPE ncx PUBLIC "-//NISO//DTD ncx 2005-1//EN"
@@ -124,7 +123,7 @@ class EPublication:
opf.append(self.content_opf_head % (escaped(self.odhandler.title), escaped(self.odhandler.language),
escaped(args[0]), escaped(self.odhandler.creator)))
for zname in z.namelist():
- opf.append("""<item id="%s" href="%s" media-type="image/jpeg"/>""" % (zname, zname))
+ opf.append(""" <item id="%s" href="%s" media-type="image/jpeg"/>""" % (zname, zname))
opf.append(self.content_opf_foot)
outputfp.writestr(zout, '\n'.join(opf))
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-odf.git
More information about the Python-modules-commits
mailing list