summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJovansonlee Cesar <ivanceras@gmail.com>2020-05-09 20:13:05 +0800
committerJovansonlee Cesar <ivanceras@gmail.com>2020-05-09 20:13:05 +0800
commit2a8994a509867eba6e4ec9de4e4f205ac21e97aa (patch)
tree6e0690de7ea55e30b31ecc1797da03a1cfac34bc
parente6257539df03a1f46c44e76066423e24dc7c8738 (diff)
Add \r for windows line breaks so as to successfully parse css legend
-rw-r--r--svgbob/src/util.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/svgbob/src/util.rs b/svgbob/src/util.rs
index 27d1950..e05b038 100644
--- a/svgbob/src/util.rs
+++ b/svgbob/src/util.rs
@@ -144,7 +144,7 @@ pub mod parser {
}
pub fn new_line<'a>() -> Parser<'a, char, ()> {
- one_of("\n").discard()
+ one_of("\r\n").discard()
}
/// any whitespace character