mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Increase default parindent to 10pt
This commit is contained in:
parent
e29b00b351
commit
fb59a6b28c
@ -13,7 +13,7 @@
|
||||
## with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
''' E-book management software'''
|
||||
__version__ = "0.3.82"
|
||||
__version__ = "0.3.83"
|
||||
__docformat__ = "epytext"
|
||||
__author__ = "Kovid Goyal <kovid@kovidgoyal.net>"
|
||||
__appname__ = 'libprs500'
|
||||
|
@ -39,7 +39,7 @@ class PRS500_PROFILE(object):
|
||||
# Number of pixels to subtract from screen_height when calculating height of text area
|
||||
fudge = 18
|
||||
font_size = 10 #: Default (in pt)
|
||||
parindent = 80 #: Default (in px)
|
||||
parindent = 10 #: Default (in pt)
|
||||
line_space = 1.2 #: Default (in pt)
|
||||
header_font_size = 6 #: In pt
|
||||
header_height = 30 #: In px
|
||||
@ -242,7 +242,7 @@ def Book(options, font_delta=0, header=None,
|
||||
baselineskip = fontsize + 20
|
||||
fonts = find_custom_fonts(options)
|
||||
tsd = dict(fontsize=fontsize,
|
||||
parindent=int(profile.parindent),
|
||||
parindent=int(10*profile.parindent),
|
||||
linespace=int(10*profile.line_space),
|
||||
baselineskip=baselineskip,
|
||||
wordspace=10*options.wordspace)
|
||||
|
@ -241,7 +241,7 @@ class HTMLConverter(object):
|
||||
lambda match: re.compile(r'<\s*?p.*?>', re.IGNORECASE).sub('', match.group())),
|
||||
]
|
||||
# Fix Baen markup
|
||||
BAEN_SANCTIFY = [
|
||||
BAEN = [
|
||||
(re.compile(r'page-break-before:\s*\w+([\s;\}])', re.IGNORECASE),
|
||||
lambda match: match.group(1)),
|
||||
(re.compile(r'<p>\s*(<a id.*?>\s*</a>)\s*</p>', re.IGNORECASE),
|
||||
@ -356,7 +356,7 @@ class HTMLConverter(object):
|
||||
nmassage = copy.copy(BeautifulSoup.MARKUP_MASSAGE)
|
||||
nmassage.extend(HTMLConverter.MARKUP_MASSAGE)
|
||||
if self.baen:
|
||||
nmassage.extend(HTMLConverter.BAEN_SANCTIFY)
|
||||
nmassage.extend(HTMLConverter.BAEN)
|
||||
|
||||
raw = open(self.file_name, 'rb').read()
|
||||
if self.pdftohtml:
|
||||
|
Loading…
x
Reference in New Issue
Block a user