diff options
author | John Wiegley <johnw@newartisans.com> | 2012-02-27 12:39:12 -0600 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2012-02-27 12:39:12 -0600 |
commit | 07137cc042fc312ae92db35167b8874a1adf2c21 (patch) | |
tree | 824e05bb8243a493c37d59501765538566c87494 /src/textual.cc | |
parent | 440371d2968bb6dc18838791e57b0e31ec172067 (diff) | |
download | fork-ledger-07137cc042fc312ae92db35167b8874a1adf2c21.tar.gz fork-ledger-07137cc042fc312ae92db35167b8874a1adf2c21.tar.bz2 fork-ledger-07137cc042fc312ae92db35167b8874a1adf2c21.zip |
'end apply' doesn't need a qualifier
Diffstat (limited to 'src/textual.cc')
-rw-r--r-- | src/textual.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/textual.cc b/src/textual.cc index 0590bbfa..82065f3c 100644 --- a/src/textual.cc +++ b/src/textual.cc @@ -849,16 +849,16 @@ void instance_t::apply_year_directive(char * line) void instance_t::end_apply_directive(char * kind) { char * b = next_element(kind); - string name(b ? b : "account"); + string name(b ? b : " "); if (context.apply_stack.size() <= 1) throw_(std::runtime_error, - _("'end %1' found, but no enclosing '%2' directive") + _("'end apply%1' found, but no enclosing 'apply%2' directive") << name << name); - if (name != context.apply_stack.front().label) + if (name != " " && name != context.apply_stack.front().label) throw_(std::runtime_error, - _("'end %1' directive does not match 'apply %2' directive") + _("'end apply%1' directive does not match 'apply %2' directive") << name << context.apply_stack.front().label); context.apply_stack.pop_front(); |