'Line too long' for a line in a literal block

Bug #1506671 reported by Ruby Loo
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
doc8
New
Undecided
Unassigned

Bug Description

I am seeing 'D001 Line too long' errors for lines that are in literal blocks. I think it is something related to the '#' character but not totally sure.

(venv)[rloo@machinesqueens doc8]$ doc8 doc2.rst
Scanning...
Validating...
doc2.rst:3: D001 Line too long
doc2.rst:8: D001 Line too long

Here is the file (not including the === lines):
===========
1234::

    a # replace with the MAC of a data port on your node
    abc

abcd::

    # ooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo
    t
==============

Revision history for this message
Pranesh (praneshpg) wrote :

Hi Ruby, I cannot reproduce this. Are you using doc8 from master?
highworld-lm:doc8 praneshp$ doc8 /tmp/test
Scanning...
Validating...
========
Total files scanned = 0
Total files ignored = 0
Total accumulated errors = 0
highworld-lm:doc8 praneshp$ cat /tmp/test
1234::

    a # replace with the MAC of a data port on your node
    abc

abcd::

    # ooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo
    t

Revision history for this message
Ruby Loo (rloo) wrote :

Hi Pranesh, if you can't reproduce it, I am wondering if the problem is in one of the packages. Sorry, I should have provided more information. this is doc8 from master branch, on RHEL7 box, py27. (Same issue with doc8, tag 0.6.0.) My venv -- 'pip freeze' is:

chardet==2.3.0
-e git+https://github.com/stackforge/doc8@65138ae3b26c4489cbc2fb24579d475edb0728d8#egg=doc8-gerrit_master
docutils==0.12
extras==0.0.3
flake8==2.1.0
hacking==0.9.6
Jinja2==2.8
linecache2==1.0.0
MarkupSafe==0.23
mccabe==0.2.1
nose==1.3.7
oslosphinx==3.3.1
pbr==1.8.1
pep8==1.5.6
pyflakes==0.8.1
Pygments==2.0.2
python-mimeparse==0.1.4
requests==2.8.1
restructuredtext-lint==0.12.2
six==1.10.0
Sphinx==1.2.3
stevedore==1.9.0
testtools==1.8.0
traceback2==1.4.0
unittest2==1.1.0
wheel==0.24.0

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.