summaryrefslogtreecommitdiff
path: root/src/precmd.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/precmd.cc')
-rw-r--r--src/precmd.cc33
1 files changed, 17 insertions, 16 deletions
diff --git a/src/precmd.cc b/src/precmd.cc
index e545a783..f78d766e 100644
--- a/src/precmd.cc
+++ b/src/precmd.cc
@@ -48,27 +48,28 @@ namespace {
{
string str;
{
- std::ostringstream buf;
-
- buf << "2004/05/27 Book Store\n"
- << " ; This note applies to all postings. :SecondTag:\n"
- << " Expenses:Books 20 BOOK @ $10\n"
- << " ; Metadata: Some Value\n"
- << " ; :ExampleTag:\n"
- << " ; Here follows a note describing the posting.\n"
- << " Liabilities:MasterCard $-200.00\n";
-
- str = buf.str();
+ std::ostringstream buf;
+
+ buf << "2004/05/27 Book Store\n"
+ << " ; This note applies to all postings. :SecondTag:\n"
+ << " Expenses:Books 20 BOOK @ $10\n"
+ << " ; Metadata: Some Value\n"
+ << " ; Typed:: $100 + $200\n"
+ << " ; :ExampleTag:\n"
+ << " ; Here follows a note describing the posting.\n"
+ << " Liabilities:MasterCard $-200.00\n";
+
+ str = buf.str();
}
std::ostream& out(report.output_stream);
out << _("--- Context is first posting of the following transaction ---")
- << std::endl << str << std::endl;
+ << std::endl << str << std::endl;
{
- std::istringstream in(str);
- report.session.journal->parse(in, report.session);
- report.session.journal->clear_xdata();
+ std::istringstream in(str);
+ report.session.journal->parse(in, report.session);
+ report.session.journal->clear_xdata();
}
}
xact_t * first = report.session.journal->xacts.front();
@@ -193,7 +194,7 @@ value_t query_command(call_scope_t& args)
if (query.tokens_remaining()) {
out << std::endl << _("====== Display predicate ======")
- << std::endl << std::endl;
+ << std::endl << std::endl;
query.parse_again();