I am getting it too, though on older versions of sphinx + docutils, it doesn't happen, and I think it is because something has gotten more strict. I have also tried adjusting the offending docstring multiple ways, and I can't figure out *what* exactly it doesn't like about the indentation.
I suspect this might be a false positive or some sort of regression, but I haven't done the homework to confirm. Howard On Apr 19, 2010, at 9:04 AM, Michael Rule wrote: > I am also having that problem in some files. My temporary solution, > since I do not have time to track it down, is to delete the offending > documentation from the source and insert it into the compiled HTML > manually after the fact. Not a very good solution. > > On Mon, Apr 19, 2010 at 4:54 AM, Erik Tollerud <[email protected]> wrote: >> I've been using sphinx w/ autodoc to generate documentation for a >> project (http://packages.python.org/Astropysics/), But I keep getting >> the following warning in one of my modules: >> >> /home/erik/src/astropysics/astropysics/models/__init__.py:docstring of >> astropysics.models:9: (ERROR/3) Unexpected indentation. >> /home/erik/src/astropysics/astropysics/models/__init__.py:docstring of >> astropysics.models:9: (ERROR/3) Unexpected indentation. >> >> I cannot for the life of me figure out what this error is caused by, >> other than that it's isolated to a particular sub-module inside the >> models module (models.core, to be exact). Is there a way to get >> sphinx to print out the docstring that is causing this error? Or at >> the very least give me something more than just a filename that anyway >> doesn't seem to be correct(given that it seems to be refrerencing the >> automodule call to another module)? >> >> -- >> You received this message because you are subscribed to the Google Groups >> "sphinx-dev" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]. >> For more options, visit this group at >> http://groups.google.com/group/sphinx-dev?hl=en. >> >> > > -- > You received this message because you are subscribed to the Google Groups > "sphinx-dev" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/sphinx-dev?hl=en. > -- You received this message because you are subscribed to the Google Groups "sphinx-dev" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/sphinx-dev?hl=en.
