Line number were off in the Emacs report
This commit is contained in:
parent
4427016b1b
commit
289f1ec0ee
1 changed files with 2 additions and 2 deletions
|
|
@ -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 << "\"";
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue