0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-06 14:50:20 -05:00

📎 Fix review issues

This commit is contained in:
Andrey Antukh 2022-04-05 13:07:11 +02:00 committed by Andrés Moya
parent 7a38b08506
commit 4adc5d25a7
2 changed files with 5 additions and 1 deletions

View file

@ -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:")

View file

@ -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)