flatten some indentation

This commit is contained in:
Jan Petykiewicz 2024-07-29 21:50:57 -07:00
parent 5fb229c09f
commit eaef972c88

View File

@ -19,7 +19,6 @@ class G85Error(Exception):
def _escape_cdata(text: str) -> str: def _escape_cdata(text: str) -> str:
if text.startswith('<![CDATA[') and text.endswith(']]>'): if text.startswith('<![CDATA[') and text.endswith(']]>'):
return text return text
else:
return _original_escape_cdata(text) return _original_escape_cdata(text)
@ -141,7 +140,7 @@ def prepare_data(data: list[list[str]] | list[list[int]], decimal: bool) -> tupl
row_text = ' '.join(srow) + ' ' row_text = ' '.join(srow) + ' '
row_texts.append(row_text) row_texts.append(row_text)
return row_texts, char_len return row_texts, char_len
else: else: # noqa: RET505
data = cast(list[list[int]], data) data = cast(list[list[int]], data)
max_value = max(max(rr) for rr in data) max_value = max(max(rr) for rr in data)
max_digits = math.ceil(math.log10(max_value)) max_digits = math.ceil(math.log10(max_value))