(www-batch-view): Accept "?char=&ENTITY-REFERENCE;".
authorMORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
Thu, 1 Apr 2010 11:40:13 +0000 (20:40 +0900)
committerMORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
Thu, 1 Apr 2010 11:40:13 +0000 (20:40 +0900)
cwiki-view.el

index 76ce3f3..a389aec 100644 (file)
@@ -238,6 +238,13 @@ size=\;; "30\" maxlength=\"30\" value=\"\" />")
 ")
        (cond
         ((stringp target)
+         (when (string-match "^char=\\(&[^&;]+;\\)" target)
+           (setq ret (match-end 0))
+           (setq target
+                 (concat "char="
+                         (www-uri-encode-char
+                          (www-uri-decode-char (match-string 1 target)))
+                         (substring target ret))))
          (setq target
                (mapcar (lambda (cell)
                          (if (string-match "=" cell)