Avoid line breaks in base64 encoding

This commit is contained in:
Carlo Sciolla 2019-08-28 12:40:23 +02:00
parent a8846bed6b
commit f3bc563eea
No known key found for this signature in database
GPG Key ID: BA5D71E6F3C580C1
1 changed files with 1 additions and 1 deletions

View File

@ -410,7 +410,7 @@ Put the result into buffer BUF. Window is selected according to PREFIX:
"Encode the string STRING into a URL suitable for PlantUML server interactions."
(let* ((coding-system (or buffer-file-coding-system
"utf8"))
(encoded-string (base64-encode-string (encode-coding-string string coding-system))))
(encoded-string (base64-encode-string (encode-coding-string string coding-system) t)))
(concat plantuml-server-url "/" plantuml-output-type "/-base64-" encoded-string)))
(defun plantuml-server-preview-string (prefix string buf)