summaryrefslogtreecommitdiff
path: root/emacs.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2008-07-17 23:42:19 -0400
committerJohn Wiegley <johnw@newartisans.com>2008-07-17 23:42:19 -0400
commit899f79d0324a09bb1b6d9445634f192458ca3613 (patch)
treeb5eefc3e2dfa936741bc5ccce7051705cdc5f413 /emacs.cc
parent0f7776f7af16a0ea78156b3210658c3ca41f576f (diff)
downloadledger-899f79d0324a09bb1b6d9445634f192458ca3613.tar.gz
ledger-899f79d0324a09bb1b6d9445634f192458ca3613.tar.bz2
ledger-899f79d0324a09bb1b6d9445634f192458ca3613.zip
Reconciling using ledger.el is now line-based, instead of character based, due
to problems with UTF-8 characters.
Diffstat (limited to 'emacs.cc')
-rw-r--r--emacs.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/emacs.cc b/emacs.cc
index 823e0367..ed0674a2 100644
--- a/emacs.cc
+++ b/emacs.cc
@@ -13,9 +13,9 @@ void format_emacs_transactions::write_entry(entry_t& entry)
break;
}
- out << (((unsigned long)entry.beg_pos) + 1) << " ";
+ out << (((unsigned long)entry.beg_line) + 1) << " ";
- std::time_t date = entry.date();
+ std::time_t date = entry.date().when;
out << "(" << (date / 65536) << " " << (date % 65536) << " 0) ";
if (entry.code.empty())
@@ -47,7 +47,7 @@ void format_emacs_transactions::operator()(transaction_t& xact)
out << "\n";
}
- out << " (" << (((unsigned long)xact.beg_pos) + 1) << " ";
+ out << " (" << (((unsigned long)xact.beg_line) + 1) << " ";
out << "\"" << xact_account(xact)->fullname() << "\" \""
<< xact.amount << "\"";