On 2010-01-28, Jean Daniel wrote:

> Here is a snippet of the index.rst::

>  Welcome to toto's documentation!
>  ================================

>  foo

>  .. literalinclude:: titi
>     :language: c
>     :start-after: "3"

>  bar

This is a syntax error. Don't use quotes around the 3.

> I have tried to change the value for the option :start-after:
> from "3" to 3 but this crashes sphinx with an exception in
> .../directives/code.py::

>   line 160, in run
>       elif use and endbefore in line:
>   TypeError: 'in <string>' requires string as left operand

I suppose you were misled by this error message. I suppose this
relates to a bug in the sphinx code, but to be sure I'd need the lines
preceding ``line 160, in run``.

> Question 1: did I miss something or is there a workaround?

> If it is a bug, there is no report in the tracker about this
> issue: question 2, Should I file a bug report?

In principle, yes. Maybe we could first try to localize it in this list.

Günter

-- 
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.

Reply via email to