rst2confluence
rst2confluence copied to clipboard
Error if the source file does not have a title
Hi,
I have just noticed that if the source file does not begin with a section/subsection statement, the converter will quit with the following error:
cat README.rst | rst2confluence
IndexError: list index out of range
Exiting due to error. Use "--traceback" to diagnose.
Please report errors to <[email protected]>.
Include "--traceback" output, Docutils version (0.8.1 [release]),
Python version (2.7.3), your OS type & version, and the
command line used.
Don't know if a .rst file is expected to begin with a section/subsection statement, but I filed the bug because if I use rst2html everything works flawlessly, hence I thought that a similar behavior could be implemented for this converter as well.
If you don't have time to do it yourself, maybe point me to the right code section so I can try and help you.
Cheers,
Matteo
Could you post an example? Works fine here.
Sorry for the abysmal delay -- this shouldn't have happen.
By the way, I narrowed down the culprit document to the following:
**Foo**
This instead appears to be working fine:
Section
=======
**Bar**
So the bug seems to be due to having a document with a leading bold operator.
I'll have a look at it tomorrow at work.
@iamFIREcracker: thanks for the sample. The issue is fixed now in my fork.