Skip to content

Commit 4285efc

Browse files
committed
;doc: beancount output: edits
1 parent 21a84fb commit 4285efc

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

examples/hledger2beancount.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
--alias dépenses=expenses
1414

1515
# A regex alias that moves the level 2 names up to level 1:
16-
# --alias /^([^:]+):([^:]+)/=\2:\1
16+
# --alias '/^([^:]+):([^:]+)/=\2:\1'
1717

1818
# Print beancount output by default.
1919
[print]

hledger/hledger.m4.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -697,15 +697,13 @@ perhaps to query it with [Beancount Query Language] or with the [Fava] web app.
697697

698698
#### Beancount account names
699699

700-
hledger will mostly adapt your account names to the more restricted
700+
hledger will try adjust your account names to the more restricted
701701
[Beancount account names](https://beancount.github.io/docs/beancount_language_syntax.html#accounts), by
702-
703-
- replacing unsupported characters with `-`
704-
- capitalising each account name part
705-
- and prepending `B` to any parts which don't begin with a letter or digit
702+
capitalising, replacing unsupported characters with `-`, and/or
703+
prepending `B` to parts which don't begin with a letter or digit.
706704

707705
But you must ensure that the top level account names are `Assets`, `Liabilities`, `Equity`, `Income`, and `Expenses`.
708-
If yours are different, you can use [account aliases](#alias-directive), usually in the form of `--alias` options,
706+
If yours are not, you can use [account aliases](#alias-directive), usually in the form of `--alias` options,
709707
possibly stored in a [config file](#config-file).
710708
(Example: [hledger2beancount.conf](https://github.com/simonmichael/hledger/blob/master/examples/hledger2beancount.conf))
711709

0 commit comments

Comments
 (0)