Merge 88ec2b989b
into ea45a13707
This commit is contained in:
commit
5f11003a8c
|
@ -426,8 +426,9 @@ Put the result into buffer BUF. Window is selected according to PREFIX:
|
||||||
"Encode the string STRING into a URL suitable for PlantUML server interactions."
|
"Encode the string STRING into a URL suitable for PlantUML server interactions."
|
||||||
(let* ((coding-system (or buffer-file-coding-system
|
(let* ((coding-system (or buffer-file-coding-system
|
||||||
"utf8"))
|
"utf8"))
|
||||||
(encoded-string (base64-encode-string (encode-coding-string string coding-system) t)))
|
(str (encode-coding-string string coding-system))
|
||||||
(concat plantuml-server-url "/" plantuml-output-type "/-base64-" encoded-string)))
|
(encoded-string (mapconcat (lambda(x)(format "%02X" x)) str ) ))
|
||||||
|
(concat plantuml-server-url "/" plantuml-output-type "/~h" encoded-string)))
|
||||||
|
|
||||||
(defun plantuml-server-preview-string (prefix string buf)
|
(defun plantuml-server-preview-string (prefix string buf)
|
||||||
"Preview the diagram from STRING as rendered by the PlantUML server.
|
"Preview the diagram from STRING as rendered by the PlantUML server.
|
||||||
|
|
Loading…
Reference in New Issue