diff options
-rw-r--r-- | src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -278,10 +278,10 @@ fn parse_list(string: &str) -> Vec<String> { let mut item = String::new(); let mut push = |item: &mut String, push_empty: bool| { let mut item = take(item); - while item.ends_with([' ', '\t']) { + while item.ends_with([' ', '\t', '\n']) { item.pop(); } - let leading_space_stripped = item.trim_start_matches([' ', '\t']); + let leading_space_stripped = item.trim_start_matches([' ', '\t', '\n']); if push_empty || !leading_space_stripped.is_empty() { list.push(if leading_space_stripped.len() == item.len() { item |