Update ods2md.py

Co-authored-by: kennytm <kennytm@gmail.com>
This commit is contained in:
Tyler Moore 2020-12-01 20:24:48 -05:00 committed by GitHub
parent 23596799a3
commit a2e0b29730
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -36,7 +36,7 @@ LINEFEED_REGEX=re.compile('\r\n|[\r\n]')
def display_text(cell):
v = cell.value
if isinstance(v, float):
return LINEFEED_REGEX.sub('<br>', '{:g}'.format(v))
return '{:g}'.format(v)
elif v is None:
return ''
else: