Merge pull request #1435 from iliekturtles/line-length

Do not count `\r` as part of line width.
This commit is contained in:
Nick Cameron 2017-04-03 08:40:22 +12:00 committed by GitHub
commit f63815ee95

View file

@ -481,7 +481,6 @@ fn format_lines(text: &mut StringBuffer, name: &str, config: &Config, report: &m
for (c, b) in text.chars() {
if c == '\r' {
line_len += c.len_utf8();
continue;
}