diff options
author | John Wiegley <johnw@newartisans.com> | 2008-09-14 19:40:26 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-09-14 19:40:26 -0400 |
commit | 6d020a9b0ba2f20054de529f0183d23afdf32972 (patch) | |
tree | ba576f2afae3538738e9dd3f0e4f0005e39c758d /src/format.cc | |
parent | 62389888b6742d91187f40527f68a41b1f32db67 (diff) | |
download | fork-ledger-6d020a9b0ba2f20054de529f0183d23afdf32972.tar.gz fork-ledger-6d020a9b0ba2f20054de529f0183d23afdf32972.tar.bz2 fork-ledger-6d020a9b0ba2f20054de529f0183d23afdf32972.zip |
format_t now handles escaped characters in input strings.
Diffstat (limited to 'src/format.cc')
-rw-r--r-- | src/format.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/format.cc b/src/format.cc index fc588c9b..3b3c562a 100644 --- a/src/format.cc +++ b/src/format.cc @@ -159,6 +159,8 @@ format_t::element_t * format_t::parse_elements(const string& fmt) case 'r': current->chars = "\r"; break; case 't': current->chars = "\t"; break; case 'v': current->chars = "\v"; break; + case '\\': current->chars = "\\"; break; + default: current->chars = string(1, *p); break; } continue; } |