Fixes to entry note parsing
This commit is contained in:
parent
6d315840a8
commit
a8e2a674a8
1 changed files with 3 additions and 2 deletions
|
|
@ -1172,8 +1172,9 @@ xact_t * instance_t::parse_xact(char * line,
|
||||||
// Parse the description text
|
// Parse the description text
|
||||||
|
|
||||||
if (next && *next) {
|
if (next && *next) {
|
||||||
|
char * p = next_element(next, true);
|
||||||
xact->payee = next;
|
xact->payee = next;
|
||||||
next = next_element(next, true);
|
next = p;
|
||||||
} else {
|
} else {
|
||||||
xact->payee = _("<Unspecified payee>");
|
xact->payee = _("<Unspecified payee>");
|
||||||
}
|
}
|
||||||
|
|
@ -1181,7 +1182,7 @@ xact_t * instance_t::parse_xact(char * line,
|
||||||
// Parse the xact note
|
// Parse the xact note
|
||||||
|
|
||||||
if (next && *next == ';')
|
if (next && *next == ';')
|
||||||
xact->append_note(next, current_year);
|
xact->append_note(++next, current_year);
|
||||||
|
|
||||||
TRACE_STOP(xact_text, 1);
|
TRACE_STOP(xact_text, 1);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue