doc8 reports unnecessary D002 and D004 on Windows line ending

Bug #1756704 reported by Lex Li on 2018-03-18
34
This bug affects 8 people
Affects Status Importance Assigned to Milestone
doc8
Undecided
Unassigned

Bug Description

It seems that such warnings come from Windows line ending `\r\n`,

'D002 Trailing whitespace'
'D004 Found literal carriage return'

doc8 should properly handle Windows line endings and do not report on such, because not all text files are of UNIX/Linux line ending `\n`.

(Linked to reStructuredText extension for VSCode https://github.com/vscode-restructuredtext/vscode-restructuredtext/issues/84)

Lex Li (lextm) on 2018-03-18
affects: manila → python-doc8 (Ubuntu)
description: updated
affects: python-doc8 (Ubuntu) → doc8
Lex Li (lextm) on 2018-03-18
description: updated
Mateusz Łoskot (mloskot) wrote :

I confirm this issue.

Laurent Garcin (laurent-garcin) wrote :

I also confirm this issue.

Rebecca Heineman (becky-e) wrote :

I confirm this issue. It's very troublesome since I do development primarily on a Windows box and all my text files are CR/LF (Although when I check out my files on macOS or Linux they are LF only), but this is quite annoying, especially in Visual Studio Code.

Deepak Maram (mskdeepak) wrote :

I can confirm this issue.

Changed in doc8:
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers