mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Bug correction: negative values of first line indent where converted to positive values causing a lot of formatting problems
This commit is contained in:
parent
8cb95f343b
commit
2f5f2a9d33
@ -680,7 +680,7 @@ class ProcessTokens:
|
|||||||
return the_string
|
return the_string
|
||||||
def divide_num(self, numerator, denominator):
|
def divide_num(self, numerator, denominator):
|
||||||
try:
|
try:
|
||||||
numerator = float(re.search('[0-9.]+', numerator).group())
|
numerator = float(re.search('[0-9.\-]+', numerator).group()) #calibre why ignore negative number? Wrong in case of \fi
|
||||||
except TypeError, msg:
|
except TypeError, msg:
|
||||||
if self.__run_level > 3:
|
if self.__run_level > 3:
|
||||||
msg = 'no number to process?\n'
|
msg = 'no number to process?\n'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user