diff options
author | Markus Unterwaditzer <markus@unterwaditzer.net> | 2015-01-15 20:31:31 +0100 |
---|---|---|
committer | Markus Unterwaditzer <markus@unterwaditzer.net> | 2015-01-15 20:31:31 +0100 |
commit | ba69eb249e211ca87e063f652f47d8ea3625734a (patch) | |
tree | 7f5af919913c63e9817e93fda560bcc75334fff9 | |
parent | 1c8336e94ec1c9e47fb022441b9386699921909a (diff) |
Don't fold at first char
-rw-r--r-- | src/vobject/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vobject/lib.rs b/src/vobject/lib.rs index dfec0a8..38f8319 100644 --- a/src/vobject/lib.rs +++ b/src/vobject/lib.rs @@ -291,7 +291,7 @@ pub fn fold_line(s: &str) -> String { let mut rv = String::new(); for (i, c) in s.chars().enumerate() { rv.push(c); - if i % 75 == 0 { + if i != 0 && i % 75 == 0 { rv.push_str("\r\n "); }; }; |