Long lines ignored in a bulet list

Bug #1942897 reported by Krzysztof Jackiewicz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
doc8
New
Undecided
Unassigned

Bug Description

Doc8(v0.9.0) ignores too long lines in special circumstances. Let's start with following file (test.rst):
Blah
~~~~

* Blah
  aaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

..

$ doc8 test.rst # fails with: "test.rst:5: D001 Line too long"
$ doc8 --allow-long-titles test.rst # succeeds

Modify above file as follows:
Blah
~~~~

* Blah
  aaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
* blah

..

Now, both above invocations will lead to "test.rst:5: D001 Line too long".

First of all, the line at 5 is not a title so --allow-long-titles should not affect the result.
Secondly, the error is not reported for lines which happen to be the last bullet list entry.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.