|
From: Neale P. <ne...@wo...> - 2008-08-21 22:11:57
|
I was the one who suggested the AtomicString change that's recently been
committed. It's probably time to move discussion to the mail list.
I'm writing a wiki and what prompted the change was that this:
<http://example.com/CamelCase/foo>
Would turn into this:
<a href="http://example.com/CamelCase/foo">http://example.com/<a
href="CamelCase.wki">CamelCase</a>/foo</a>
AtomicString fixes that by creating a new String class (inherits from
unicode, actually) that won't receive further processing. Then it's a
simple matter of setting `e.text = AtomicString(whatever)`.
I have a new problem in my WikiLinkPattern class. Here is some
debugging output:
handlematch u'If you are new to wiki, check out WikiHelp.'
handlematch u'If you are new to wiki, check out \x02inline:WikiLinkPattern:0000\x03.'
handlematch u'If you are new to wiki, check out \x02inline:\x02inline:WikiLinkPattern:0001\x03:0000\x03.'
ad infinitum. My WikiLink regex is matching the inline thingy.
I know the upstream dudes are at least pondering removing inline
entirely, possibly using a mechanism like AtomicString. Should I hold
off on fixing this locally?
Neale
|