From 0d774ab2fb6a1e314f9938ae2a1e13815cae762a Mon Sep 17 00:00:00 2001 From: MORIOKA Tomohiko Date: Thu, 10 Aug 2017 17:57:25 +0900 Subject: [PATCH] (www-display-object-desc): Fix problem about ">-...;" in input boxes of IDS-Find. --- cwiki-view.el | 83 +++++++++++++++++++++++++-------------------------------- 1 file changed, 36 insertions(+), 47 deletions(-) diff --git a/cwiki-view.el b/cwiki-view.el index a148dfb..e868df9 100644 --- a/cwiki-view.el +++ b/cwiki-view.el @@ -461,56 +461,45 @@ size=\"30\" maxlength=\"30\" value=\"%s\">)

"

\n" "

  • \n")) (when (eq genre 'character) - (princ - "
    \n") - (princ - (www-format-encode-string - (est-format-object object) - ;; (if (eq genre 'character) - ;; (format "%c" object) - ;; (format "%s" (concord-object-id object))) - )) - (princ - (format - " \n") + (princ (www-format-encode-string object-str)) + (setq encoded-object-for-form + (with-temp-buffer + (insert (encode-coding-string object-str 'utf-8-jp-er)) + (goto-char (point-min)) + (while (search-forward ">-" nil t) + (replace-match "&GT-" t t) + ) + (buffer-string))) + (princ + (format + " " - (encode-coding-string - (est-format-object object) - ;; (if (eq genre 'character) - ;; (char-to-string object) - ;; (format "%s" (concord-object-id object))) - 'utf-8-jp-er))) - (princ - (www-format-encode-string - "を\u542Bむ\u6F22\u5B57を\u63A2す")) - (princ " \n") - (princ "
    \n") + encoded-object-for-form)) + (princ + (www-format-encode-string + "を\u542Bむ\u6F22\u5B57を\u63A2す")) + (princ " \n") + (princ "\n") - (princ - "
    \n") - (princ - (www-format-encode-string - (est-format-object object) - ;; (if (eq genre 'character) - ;; (format "%c" object) - ;; (format "%s" (concord-object-id object))) - )) - (princ - (format - " \n") + (princ (www-format-encode-string object-str)) + + (princ + (format + " " - (encode-coding-string - (est-format-object object) - ;; (if (eq genre 'character) - ;; (char-to-string object) - ;; (format "%s" (concord-object-id object))) - 'utf-8-jp-er))) - (princ - (www-format-encode-string - "を\u542Bむ HNG の\u6F22\u5B57を\u63A2す")) - (princ " \n") - (princ "
    \n") - ) + encoded-object-for-form)) + (princ + (www-format-encode-string + "を\u542Bむ HNG の\u6F22\u5B57を\u63A2す")) + (princ " \n") + (princ "\n") + )) (princ (if (= level 1) "

    \n" -- 1.7.10.4