From: MORIOKA Tomohiko Date: Thu, 10 Aug 2017 08:57:25 +0000 (+0900) Subject: (www-display-object-desc): Fix problem about ">-...;" in input boxes X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=0d774ab2fb6a1e314f9938ae2a1e13815cae762a;p=chise%2Fest.git (www-display-object-desc): Fix problem about ">-...;" in input boxes of IDS-Find. --- 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"