Menu

Commit [r10536]  Maximize  Restore  History

wiki: remove enclosing quotes eventually present around labels in CamelCase links.

If there are quotes, their only purpose is to be able to insert some "]" characters in the label itself. If the enclosing quotes themselves should be present, then it's enough to double the quotes as only one level of quotes is stripped.

At this occasion, `Formatter._unquote` becomes `trac.util.text.label_unquote`.

Suggested by Mitar on trac-dev.

cboos 2011-02-07

changed /trunk/trac/util/text.py
changed /trunk/trac/wiki/api.py
changed /trunk/trac/wiki/formatter.py
changed /trunk/trac/wiki/tests/wikisyntax.py
/trunk/trac/util/text.py Diff Switch to side-by-side view
Loading...
/trunk/trac/wiki/api.py Diff Switch to side-by-side view
Loading...
/trunk/trac/wiki/formatter.py Diff Switch to side-by-side view
Loading...
/trunk/trac/wiki/tests/wikisyntax.py Diff Switch to side-by-side view
Loading...
MongoDB Logo MongoDB