Bug correction: negative values of first line indent where converted to positive values causing a lot of formatting problems

This commit is contained in:
Sengian 2010-07-26 22:43:11 +02:00
parent 8cb95f343b
commit 2f5f2a9d33

View File

@ -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'