diff options
Diffstat (limited to 'translate.cxx')
-rw-r--r-- | translate.cxx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/translate.cxx b/translate.cxx index 54878a40..736e380f 100644 --- a/translate.cxx +++ b/translate.cxx @@ -4010,6 +4010,8 @@ c_unparser::visit_print_format (print_format* e) // directive for each argument. for (unsigned i = 0; i < e->args.size(); ++i) { + if (i > 0 && e->print_with_delim) + components.push_back (e->delimiter); print_format::format_component curr; curr.clear(); switch (e->args[i]->type) @@ -4027,6 +4029,15 @@ c_unparser::visit_print_format (print_format* e) } components.push_back (curr); } + + if (e->print_with_newline) + { + print_format::format_component curr; + curr.clear(); + curr.type = print_format::conv_literal; + curr.literal_string = "\\n"; + components.push_back (curr); + } } |