diff options
-rw-r--r-- | src/makefile/input.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/makefile/input.rs b/src/makefile/input.rs index b828829..3fe28e7 100644 --- a/src/makefile/input.rs +++ b/src/makefile/input.rs @@ -298,7 +298,7 @@ impl<'a, 'parent, R: BufRead> MakefileReader<'a, 'parent, R> { lazy_static! { static ref COMMENT: Regex = Regex::new("#.*$").unwrap(); } - let line = COMMENT.replace(&line, "").into_owned(); + let line = COMMENT.replace(&line, "").trim_end().to_owned(); // handle escaped newlines let mut line_pieces = vec![line]; |