Description

Because the rst parser has no extensions defined it can't be used to parse attached files.

Steps to reproduce

Inline ReST Testing

This is a test of using ReST attachments with MoinMoin. I really hope this works.

A B
C D
test.rst test.rst

Component selection

Details

this wiki

Workaround

Discussion

Why don't we have set extensions for various of our parsers?

A quicklook gives missing extensions for: text_creole.py, text_diff.py, text_docbook.py, text_irssi.py,text_moin_wiki.py, text_rst.py, text_xslt.py

I think we should add a 2.0 compatible extension similiar to the example below. Because doing this lets some attachments look similiar to "items" in 2.0.

   1 diff -r 28eba8f9b778 MoinMoin/parser/text_rst.py
   2 --- a/MoinMoin/parser/text_rst.py       Fri Dec 04 09:07:15 2009 +0100
   3 +++ b/MoinMoin/parser/text_rst.py       Sat Dec 05 12:16:23 2009 +0100
   4 @@ -175,6 +175,7 @@
   5  class Parser:
   6      caching = 1
   7      Dependencies = Dependencies # copy dependencies from module-scope
   8 +    extensions = ['.rst']
   9      quickhelp = _("""\
  10  {{{
  11  Emphasis: *italic* **bold** ``monospace``
  12 diff -r 28eba8f9b778 MoinMoin/wikiutil.py
  13 --- a/MoinMoin/wikiutil.py      Fri Dec 04 09:07:15 2009 +0100
  14 +++ b/MoinMoin/wikiutil.py      Sat Dec 05 12:16:23 2009 +0100
  15 @@ -859,6 +859,7 @@
  16   '.patch': 'text/x-diff',
  17   '.diff': 'text/x-diff',
  18   '.py': 'text/x-python',
  19 + '.rst': 'text/x-rst',
  20   '.cfg': 'text/plain',
  21   '.conf': 'text/plain',
  22   '.irc': 'text/plain',

further parsers

/!\ Is this just made up or does someone use those extensions?

Plan

bug should be fixed in 1.9.1 after some discussion


CategoryMoinMoinBugFixed

MoinMoin: MoinMoinBugs/Parser for ReST misses extensions definitions (last edited 2010-01-06 20:21:48 by ReimarBauer)