[Pywikipedia-l] How do I insert an "!" (exclamation mark)?
Daniel Herding
DHerding at gmx.de
Wed Nov 26 09:26:00 UTC 2008
Dear Chris,
Am Dienstag 25 November 2008 03:09:20 schrieb Chris Watkins:
> If I run:
> python replace.py -cat:"The Transition Handbook" "-- Please do not remove "
> "!-- Please do not remove "
>
> ...t doesn't change anything.
You can use HTML entities:
python replace.py -cat:"The Transition Handbook" "-- Please do not
remove " "!-- Please do not remove "
The downside of this is that the HTML entity will be in the wiki source code.
If you do, however, enable the cosmetic changes, the entity will
automatically be converted to an exclamation mark before saving to the wiki.
Just add this line to your user-config.py:
cosmetic_changes = True
Cheers
Daniel
More information about the Pywikipedia-l
mailing list