summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Unterwaditzer <markus@unterwaditzer.net>2015-01-14 15:24:02 +0100
committerMarkus Unterwaditzer <markus@unterwaditzer.net>2015-01-14 15:24:02 +0100
commit83dad0d04a32bf996fd0b828626ef40241ab38b2 (patch)
treeb56e0e19608d9f4dbb9315f2f9fcfc77bd751880
parentbd84046e335bc07cbc0be0499fec033fbddbd9da (diff)
fix unfolding
-rw-r--r--src/vobject/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vobject/lib.rs b/src/vobject/lib.rs
index 8e87fd9..cdbfebb 100644
--- a/src/vobject/lib.rs
+++ b/src/vobject/lib.rs
@@ -207,8 +207,8 @@ pub fn parse_component(s: &String) -> Result<Component, String> {
// XXX: The unfolding should be worked into the PEG
// See feature request: https://github.com/kevinmehall/rust-peg/issues/26
let unfolded = s
- .replace("\n ", "").replace("\n\t", "")
.replace("\r\n ", "").replace("\r\n\t", "")
+ .replace("\n ", "").replace("\n\t", "")
.replace("\r ", "").replace("\r\t", "");
parser::component(unfolded.as_slice())