From c37ed6f84853bd84513ce6ad2d4b74a5380d17d6 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Thu, 2 Dec 2010 16:15:13 +0100 Subject: [PATCH] epub margin for indents --- librarian/epub.py | 4 ++-- librarian/epub/xsltScheme.xsl | 43 +++++++---------------------------- 2 files changed, 10 insertions(+), 37 deletions(-) diff --git a/librarian/epub.py b/librarian/epub.py index 3bdd1cd..a5607f7 100644 --- a/librarian/epub.py +++ b/librarian/epub.py @@ -276,6 +276,8 @@ def transform(provider, slug=None, file_path=None, output_file=None, output_dir= def transform_file(input_xml, chunk_counter=1, first=True): """ processes one input file and proceeds to its children """ + replace_characters(input_xml.getroot()) + children = [child.text for child in input_xml.findall('.//'+DCNS('relation.hasPart'))] # every input file will have a TOC entry, @@ -308,8 +310,6 @@ def transform(provider, slug=None, file_path=None, output_file=None, output_dir= main_text = None if main_text is not None: - replace_characters(main_text) - for chunk_xml in chop(main_text): chunk_html, chunk_toc, chunk_chars = transform_chunk(chunk_xml, chunk_counter, annotations) toc.extend(chunk_toc) diff --git a/librarian/epub/xsltScheme.xsl b/librarian/epub/xsltScheme.xsl index 6557a5c..ff0ceb5 100644 --- a/librarian/epub/xsltScheme.xsl +++ b/librarian/epub/xsltScheme.xsl @@ -177,55 +177,28 @@ -
+
-
+
- -
- -
-
- - -
- -
-
- - -
- -
-
- - -
- -
-
- - -
- -
-
- - -
+ +
+ + margin-left: em; +
-
+
-- 2.20.1