[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[emacs-wiki-discuss] Re: Escaping spaces in xhtml broken?
From: |
Michael Olson |
Subject: |
[emacs-wiki-discuss] Re: Escaping spaces in xhtml broken? |
Date: |
Mon, 26 Dec 2005 02:03:24 -0500 |
User-agent: |
Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) |
John Sullivan <address@hidden> writes:
> I'm about to dive into the ChangeLog to see if I can figure out
> what's going on, but after an update today, links with spaces in
> them are now being published in xhtml brokenly. What was previously:
>
> http://www.wjsullivan.net/Quick%20Meals
>
> is now being published as:
>
> http://www.wjsullivan.net/Quick&.html#32;Meals
>
> which doesn't work.
This should be fixed now.
2005-12-26 07:02:20 GMT Michael Olson <address@hidden> patch-321
Summary:
Make sure spaces in HTML URLs get escaped properly.
Revision:
muse--main--1.0--patch-321
* lisp/muse-docbook.el (muse-docbook-markup-specials): Move to
muse-xml-common.el.
* lisp/muse-html.el (muse-html-markup-specials): Ditto.
* lisp/muse-xml.el (muse-xml-markup-specials): Ditto.
* lisp/muse-html.el (muse-html-prepare-buffer): Don't modify
muse-publish-url-transforms.
* lisp/muse-publish.el (muse-publish-escape-specials): Get specials only
once, rather than once-per-iteration.
(muse-publish-escape-specials-in-string): If a function is returned by
a function in :specials, pass it the string and use the results. This
allows us to deal with funky cases like HTML URLs which work on a
negated subset, by passing the buck. We don't permit this behavior in
muse-publish-escape-specials because there hasn't been a need, yet.
* lisp/muse-xml-common.el (muse-xml-markup-specials): New option that
specifies the specials to normally escape.
(muse-xml-markup-specials-url-extra): New option that specifies the
extra specials to escape in URLs. Thanks to John Sullivan for
reporting the incorrect translation of the space character in URLs.
(muse-xml-decide-specials): New function that determines the specials
to escape, given context.
(muse-xml-escape-url): Rename from muse-xml-escape-string. Add "%" to
the list of characters to ignore. Fix code indentation.
modified files:
ChangeLog lisp/muse-docbook.el lisp/muse-html.el
lisp/muse-publish.el lisp/muse-xml-common.el lisp/muse-xml.el
--
Michael Olson -- FSF Associate Member #652 -- http://www.mwolson.org/
Interests: manga, Debian, XHTML, wiki, Emacs Lisp
/` |\ | | | IRC: mwolson on freenode.net: #hcoop, #muse, #PurdueLUG
|_] | \| |_| Jabber: mwolson_at_hcoop.net
pgpOZju2LV7kL.pgp
Description: PGP signature