From f3bc563eeab8ca3ce26ce2f54a192706d91351d3 Mon Sep 17 00:00:00 2001 From: Carlo Sciolla Date: Wed, 28 Aug 2019 12:40:23 +0200 Subject: [PATCH] Avoid line breaks in base64 encoding --- plantuml-mode.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plantuml-mode.el b/plantuml-mode.el index cdf6293..6165ada 100644 --- a/plantuml-mode.el +++ b/plantuml-mode.el @@ -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)