mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
allow windows newlines in TDB2 files
This commit is contained in:
parent
69d052603d
commit
5019ecb4f8
1 changed files with 2 additions and 1 deletions
|
@ -27,7 +27,8 @@ impl File {
|
|||
|
||||
fn parse(input: &str) -> IResult<&str, File> {
|
||||
all_consuming(fold_many0(
|
||||
terminated(Line::parse, char('\n')),
|
||||
// allow windows or normal newlines
|
||||
terminated(Line::parse, pair(opt(char('\r')), char('\n'))),
|
||||
File { lines: vec![] },
|
||||
|mut file, line| {
|
||||
file.lines.push(line);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue