From f350a1bc9f58e907984cbee4011a70d5b483e740 Mon Sep 17 00:00:00 2001 From: Kshitiz Udainiya <62376176+Zitishk@users.noreply.github.com> Date: Wed, 3 Dec 2025 13:25:31 -0800 Subject: [PATCH] Update financial_statement.py Correct indent for return statement in _print_section --- python_accounting/reports/financial_statement.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python_accounting/reports/financial_statement.py b/python_accounting/reports/financial_statement.py index 6bb0866..76b551a 100644 --- a/python_accounting/reports/financial_statement.py +++ b/python_accounting/reports/financial_statement.py @@ -113,7 +113,7 @@ def _print_section(self, section, factor=1) -> str: for account_type, balance in self.balances[section.name].items(): label = f"\n{self.indent}{account_type}" content += f"{label}{balance * factor:>{self.width - len(label) + 1}}" - return content + return content def _print_result(self, result, grandtotal=False) -> str: return f"""{f"{self.subtotal:>{self.width}}"}\n{result}{f"{self.result_amounts[result.name]:>{self.width - len(result)}}"}\n{f"{self.grandtotal:>{self.width}}" if grandtotal else ""}"""