Re: Bug report
Guenter Milde <[email protected]>
| Newsgroups | gmane.text.docutils.user |
|---|---|
| Message-ID | <[email protected]> |
On 2014-08-07, Ayan Shafqat wrote:
> [-- Type: text/plain, Encoding: quoted-printable --]
> I am trying to convert a RST file into TWIKI, using Cygwin:
> CYGWIN_NT-6.1-WOW64 <HOSTNAME> 1.7.17(0.262/5/3) 2012-10-19 14:39 i686
>> Cygwin
> This is the error I get when I try to convert RST to Twiki:
>> ***$ rst2twiki.py --traceback FILE.rst*
>> Traceback (most recent call last):
>> File "/usr/bin/rst2twiki.py", line 5, in <module>
>> pkg_resources.run_script('rst2twiki==0.1', 'rst2twiki.py')
>> File "build/bdist.linux-i686/egg/pkg_resources.py", line 489, in
>> run_script
>> yield ep
>> File "build/bdist.linux-i686/egg/pkg_resources.py", line 1214, in
>> run_script
>> File
>> "/usr/lib/python2.7/site-packages/rst2twiki-0.1-py2.7.egg/EGG-INFO/scripts/rst2twiki.py",
>> line 258, in <module>
>> File "/usr/lib/python2.7/site-packages/docutils/core.py", line 352, in
>> publish_cmdline
>> config_section=config_section, enable_exit_status=enable_exit_status)
>> File "/usr/lib/python2.7/site-packages/docutils/core.py", line 219, in
>> publish
...
>> File "/usr/lib/python2.7/site-packages/docutils/nodes.py", line 1882, in
>> dispatch_visit
>> return method(node)
>> File
>> "/usr/lib/python2.7/site-packages/rst2twiki-0.1-py2.7.egg/EGG-INFO/scripts/rst2twiki.py",
>> line 239, in visit_entry
>> AttributeError: WikiVisitor instance has no attribute 'thead'
This seems to be a missing feature in the "twiki" writer:
Please note that TWiki only implements a very small subset of
DocUtils's markup features. Thus, the script is by necessity a bit of a
hack. It is of course possible to simply use HTML to "fill in the
gaps", but this would altogether defeat the purpose of TWiki markup.
Instead, errors are given whenever an unimplemented feature of
ReStructured Text is used in the document.
-- https://github.com/djspiewak/rst2twiki
Are tables supported in TWiki?
Mind, that rst2twiki is not part of Docutils but an external add-on.
> Here is the Docutils version:
>> *$ rst2twiki.py --version*
>> rst2twiki.py (Docutils 0.12 [repository], Python 2.7.3, on cygwin)
This output is somewhat misleading: rst2twiki builds on Docutils and it
seems that the wrapper script rst2twiki.py is modelled after the wrapper
scripts provided with Docutils.
Günter
------------------------------------------------------------------------------
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls.
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
_______________________________________________
Docutils-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/docutils-users
Please use "Reply All" to reply to the list.