diff options
Diffstat (limited to 'emacs.cc')
-rw-r--r-- | emacs.cc | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -4,6 +4,16 @@ namespace ledger { void format_emacs_transactions::write_entry(entry_t& entry) { + int idx = entry.src_idx; + + for (strings_list::iterator i = entry.journal->sources.begin(); + i != entry.journal->sources.end(); + i++) + if (! idx--) { + out << "\"" << *i << "\" "; + break; + } + out << (((unsigned long)entry.beg_pos) + 1) << " "; switch (entry.state) { |