summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/format.cc2
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;
}