From 289f1ec0eeaf1d84f2638677ca1e452eeb01ed3d Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sat, 31 Oct 2009 04:06:19 -0400 Subject: Line number were off in the Emacs report --- src/emacs.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/emacs.cc') diff --git a/src/emacs.cc b/src/emacs.cc index 24d3f1c1..1d3f28a3 100644 --- a/src/emacs.cc +++ b/src/emacs.cc @@ -41,7 +41,7 @@ namespace ledger { void format_emacs_posts::write_xact(xact_t& xact) { out << "\"" << xact.pos->pathname << "\" " - << (xact.pos->beg_line + 1) << " "; + << xact.pos->beg_line << " "; tm when = gregorian::to_tm(xact.date()); std::time_t date = std::mktime(&when); // jww (2008-04-20): Is this GMT or local? @@ -77,7 +77,7 @@ void format_emacs_posts::operator()(post_t& post) out << "\n"; } - out << " (" << (post.pos->beg_line + 1) << " "; + out << " (" << post.pos->beg_line << " "; out << "\"" << post.reported_account()->fullname() << "\" \"" << post.amount << "\""; -- cgit v1.2.3