fnp
/
librarian.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
pep8 etc.
[librarian.git]
/
librarian
/
parser.py
diff --git
a/librarian/parser.py
b/librarian/parser.py
index
f02b64c
..
fb2f986
100644
(file)
--- a/
librarian/parser.py
+++ b/
librarian/parser.py
@@
-204,8
+204,8
@@
class WLDocument(object):
return epub.transform(self, *args, **kwargs)
def as_pdf(self, *args, **kwargs):
return epub.transform(self, *args, **kwargs)
def as_pdf(self, *args, **kwargs):
- from librarian import pdf
- return p
df.transform(self,
*args, **kwargs)
+ from librarian import p
yp
df
+ return p
ypdf.EduModulePDFFormat(self).build(
*args, **kwargs)
def as_mobi(self, *args, **kwargs):
from librarian import mobi
def as_mobi(self, *args, **kwargs):
from librarian import mobi
@@
-217,7
+217,7
@@
class WLDocument(object):
def as_cover(self, cover_class=None, *args, **kwargs):
if cover_class is None:
def as_cover(self, cover_class=None, *args, **kwargs):
if cover_class is None:
- from librarian.cover import WLCover
+ from librarian.
styles.wolnelektury.
cover import WLCover
cover_class = WLCover
return cover_class(self.book_info, *args, **kwargs).output_file()
cover_class = WLCover
return cover_class(self.book_info, *args, **kwargs).output_file()