Vanguard at some point started repeating their memo strings in some of their ofx files, so they look like this: 'DIVIDEND REINVESTMENTDIVIDEND REINVESTMENT'.
I added a fix <https://github.com/redstreet/beancount_reds_importers/commit/51280cd888b719147c0dc7e382dd97b6ff7b8e0e> in beancount_reds_importers <https://github.com/redstreet/beancount_reds_importers>. However, this has been going on for a while, and I wanted to go fix my beancount files from prior imports. While there are several simple ways to accomplish this, I used autobean.refactor <https://groups.google.com/g/beancount/c/v_SXiyhQWfs/m/cR96x43LAwAJ> since it has the highest level understanding of beancount files, and because I've been using it for other things. Note that I don't use a single beancount file, but one per per account <https://reds-rants.netlify.app/personal-finance/ledger-filing-hierarchy/>. Since this is a good hello-world-ish example, I thought I'd share my code to help others kickstart their reformats/refactors. *Here's the gist* <https://gist.github.com/redstreet/251e3c886c74093881e836941e839ed8>. Most of it is stolen from autobean.format here <https://github.com/SEIAROTg/autobean-format/blob/main/autobean_format/main.py> . -- You received this message because you are subscribed to the Google Groups "Beancount" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/679b27c9-f448-45ec-aa19-501b51117b29n%40googlegroups.com.
