DOCX Output: Have the docx output plugin recommend page margins of 1 inch

This commit is contained in:
Kovid Goyal 2015-05-13 15:02:22 +05:30
parent 15b12f66d9
commit b1edf9c8b5

View File

@ -34,6 +34,13 @@ class DOCXOutput(OutputFormatPlugin):
'deleted, so be careful.') % 'DOCX'),
}
recommendations = {
('margin_left', 72.0, OptionRecommendation.MED),
('margin_right', 72.0, OptionRecommendation.MED),
('margin_top', 72.0, OptionRecommendation.MED),
('margin_bottom', 72.0, OptionRecommendation.MED),
}
def convert_metadata(self, oeb):
from lxml import etree
from calibre.ebooks.oeb.base import OPF, OPF2_NS