LaunchPlatform/beancount-black

Padding and balance lines are seperated with line breaks

haozi04 opened this issue · 1 comments

I put the padding line and balance lines together in the original file:

2024-01-01 pad Assets:WeChat:Balances Equity:Open-Balances
2024-01-02 balance Assets:WeChat:Balances                       10.00 CNY

2024-01-01 pad Assets:Alipay:Balances Equity:Open-Balances
2024-01-02 balance Assets:Alipay:Balances                       20.00 CNY

After bean-black they became:

2024-01-01 pad Assets:WeChat:Balances Equity:Open-Balances

2024-01-01 pad Assets:Alipay:Balances Equity:Open-Balances

2024-01-02 balance Assets:WeChat:Balances                10.00 CNY

2024-01-02 balance Assets:Alipay:Balances                20.00 CNY

Is the extra line breaks essential by design? I read the Beancount documents and am not able to tell.

Thank you for the neat tool though!

I feel like there are a lot of sections that have added line breaks that should not. Is there something like this:

# fmt: off
def foo(): ... # Ignore black
# fmt: on