-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Am 29.01.2010 11:13, schrieb Guenter Milde: > 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``.
This is indeed a bug, now fixed in rev 9cc7e3233f49, and will be in 0.6.5. Thanks, Georg -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (GNU/Linux) iEYEARECAAYFAktkcVwACgkQN9GcIYhpnLAerACgmXwwwGS9aGJP0ewlOVUxYg33 JKUAnj2n8LZ6kJh4o/mIeA263B/bKY5B =OYDJ -----END PGP SIGNATURE----- -- 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.
