diff --git a/exporter/src/app/renderer/svg.cljs b/exporter/src/app/renderer/svg.cljs index 9a0b681b0..73d518779 100644 --- a/exporter/src/app/renderer/svg.cljs +++ b/exporter/src/app/renderer/svg.cljs @@ -330,6 +330,10 @@ (p/let [xmldata (extract-svg page object) txtdata (extract-txt-nodes page object) result (replace-text-nodes xmldata txtdata) + + ;; SVG standard don't allow the entity + ;; nbsp.   is equivalent but compatible + ;; with SVG. result (str/replace result " " " ")] ;; (println "------- ORIGIN:") diff --git a/frontend/src/app/util/dom.cljs b/frontend/src/app/util/dom.cljs index 695cd2ed1..a6b92c6d4 100644 --- a/frontend/src/app/util/dom.cljs +++ b/frontend/src/app/util/dom.cljs @@ -467,7 +467,7 @@ (let [link (create-element "a") extension (mtype->extension mtype) filename (if (and extension (not (str/ends-with? filename extension))) - (str/concat filename "." extension) + (str/concat filename extension) filename)] (obj/set! link "href" uri) (obj/set! link "download" filename)