Description

Closing bracket + dot in attachment filenames are not correctly accepted. This is only a minor problem but it is puzzling for unexperienced users.

Steps to reproduce / Example

Closing bracket + dot is not correctly accepted by the 1.5.x parser:

 * attachment:Testing).txt
 * attachment:Testing].txt
 * attachment:Testing}.txt
 * attachment:Testing).test.txt

But an opening bracet is Ok for the 1.5 parser:

 * attachment:Testing(.txt
 * attachment:Testing[.txt
 * attachment:Testing{.txt
 * attachment:Testing(.test.txt

For 1.6, this is solved by the new link syntax:

Details

This Wiki.

Workaround

Use a different form of linking [attachment:Testing).txt] (which correctly gives Testing).txt) or put another character in between the closing bracket and the dot.

Discussion

In text_moin_wiki.py punct_pattern has )]} defined. If they are moved to punct_no_quote_pattern then this bug is fixed. But I have no idea why they were defined at text_moin_wiki_punct_pattern -- ReimarBauer 2006-12-22 20:34:53

If we change this, I guess just another sort of unwanted things will happen, e.g. if you write something like this:

Here is the source (see attachment:source.py).

In 1.6, wiki markup uses a different syntax that does not have this problem.

Plan


CategoryMoinMoinBugFixed

MoinMoin: MoinMoinBugs/AttachmentNamesWithBracketPlusDot (last edited 2007-11-15 13:51:36 by ThomasWaldmann)