formater: add support for double-quoted fields

Part of #91.

* spot/misc/formater.cc, spot/misc/formater.hh: Here.
* bin/common_output.cc: Adjust automatic output format.
* doc/org/csv.org: Adjust.
* tests/core/lbt.test, tests/core/ltlfilt.test: More tests.
* NEWS: Mention the changes.
This commit is contained in:
Alexandre Duret-Lutz 2016-08-08 10:13:26 +02:00
parent 6ed0830f87
commit 0d753048ce
7 changed files with 97 additions and 28 deletions

View file

@ -173,8 +173,11 @@ namespace spot
std::ostream&
format(std::ostream& output, const char* fmt)
{
std::ostream* tmp = output_;
set_output(output);
return format(fmt);
format(fmt);
set_output(*tmp);
return output;
}
/// Expand the %-sequences in \a fmt, write the result on \a output_.