Whitespace corrections
This commit is contained in:
parent
20f4ccde96
commit
c2b5b1a516
2 changed files with 8 additions and 8 deletions
|
|
@ -298,7 +298,7 @@ namespace {
|
||||||
if (! acct)
|
if (! acct)
|
||||||
throw_(std::runtime_error,
|
throw_(std::runtime_error,
|
||||||
_("Could not find an account matching ") << args[0]);
|
_("Could not find an account matching ") << args[0]);
|
||||||
else
|
|
||||||
return value_t(static_cast<scope_t *>(acct));
|
return value_t(static_cast<scope_t *>(acct));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -313,9 +313,9 @@ namespace {
|
||||||
|
|
||||||
value_t get_display_account(call_scope_t& args)
|
value_t get_display_account(call_scope_t& args)
|
||||||
{
|
{
|
||||||
post_t& post(args.context<post_t>());
|
|
||||||
value_t acct = get_account(args);
|
value_t acct = get_account(args);
|
||||||
if (acct.is_string()) {
|
if (acct.is_string()) {
|
||||||
|
post_t& post(args.context<post_t>());
|
||||||
if (post.has_flags(POST_VIRTUAL)) {
|
if (post.has_flags(POST_VIRTUAL)) {
|
||||||
if (post.must_balance())
|
if (post.must_balance())
|
||||||
acct = string_value(string("[") + acct.as_string() + "]");
|
acct = string_value(string("[") + acct.as_string() + "]");
|
||||||
|
|
|
||||||
|
|
@ -622,8 +622,8 @@ value_t report_t::fn_truncated(call_scope_t& args)
|
||||||
{
|
{
|
||||||
return string_value(format_t::truncate
|
return string_value(format_t::truncate
|
||||||
(args.get<string>(0),
|
(args.get<string>(0),
|
||||||
args.has<int>(1) &&
|
(args.has<int>(1) &&
|
||||||
args.get<int>(1) > 0 ? args.get<int>(1) : 0,
|
args.get<int>(1) > 0) ? args.get<int>(1) : 0,
|
||||||
args.has<int>(2) ? args.get<int>(2) : 0));
|
args.has<int>(2) ? args.get<int>(2) : 0));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue