Make sure spaces in HTML URLs get escaped properly.
commit0465c574edbb3877114471ad6976221df848adfa
authorMichael Olson <mwolson@gnu.org>
Mon, 26 Dec 2005 07:02:20 +0000 (26 07:02 +0000)
committerMichael Olson <mwolson@gnu.org>
Mon, 26 Dec 2005 07:02:20 +0000 (26 07:02 +0000)
tree685bf747d1a2ebb23e50eff0cc08ec86b6ae6eab
parent5d6d598145f4b9ed7b3784549926399376a04f85
Make sure spaces in HTML URLs get escaped properly.

* 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.
git-archimport-id: mwolson@gnu.org--2005/muse--main--1.0--patch-321
ChangeLog
lisp/muse-docbook.el
lisp/muse-html.el
lisp/muse-publish.el
lisp/muse-xml-common.el
lisp/muse-xml.el