Have Textile TXT output use textile unsmarten.

This commit is contained in:
John Schember 2011-09-03 15:44:45 -04:00
parent d8e86c426f
commit b3b536add9

View File

@ -15,7 +15,7 @@ from calibre.ebooks.htmlz.oeb2html import OEB2HTML
from calibre.ebooks.oeb.base import XHTML, XHTML_NS, barename, namespace, rewrite_links
from calibre.ebooks.oeb.stylizer import Stylizer
from calibre.ebooks import unit_convert
from calibre.ebooks.txt.unsmarten import unsmarten
from calibre.ebooks.textile.unsmarten import unsmarten
class TextileMLizer(OEB2HTML):
@ -43,6 +43,7 @@ class TextileMLizer(OEB2HTML):
self.style_smallcap = False
txt = self.mlize_spine(oeb_book)
if self.opts.unsmarten_punctuation:
txt = unsmarten(txt)
# Do some tidying up