fnp
/
librarian.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9649d7e
)
[epub, mobi] fix for IT #3356 - new line char is problemtic in toc.ncx - replace...
author
Robert Błaut
<listy@blaut.biz>
Thu, 27 Feb 2014 16:03:20 +0000
(17:03 +0100)
committer
Robert Błaut
<listy@blaut.biz>
Thu, 27 Feb 2014 16:03:20 +0000
(17:03 +0100)
librarian/epub.py
patch
|
blob
|
history
diff --git
a/librarian/epub.py
b/librarian/epub.py
index
6377526
..
b17ca0e
100644
(file)
--- a/
librarian/epub.py
+++ b/
librarian/epub.py
@@
-249,7
+249,7
@@
class TOC(object):
nav_label = nav_map.makeelement(NCXNS('navLabel'))
text = nav_map.makeelement(NCXNS('text'))
nav_label = nav_map.makeelement(NCXNS('navLabel'))
text = nav_map.makeelement(NCXNS('text'))
- text.text =
child.name
+ text.text =
re.sub(r'\n', ' ', child.name)
nav_label.append(text)
nav_point.append(nav_label)
nav_label.append(text)
nav_point.append(nav_label)