mirror of
https://github.com/penpot/penpot.git
synced 2025-05-24 16:26:13 +02:00
✨ Initial SVG text support
This commit is contained in:
parent
c3f57cf900
commit
a411cbc640
12 changed files with 465 additions and 229 deletions
|
@ -311,7 +311,11 @@
|
|||
xmldata (bw/eval! dom (fn [elem] (.-outerHTML ^js elem)))
|
||||
nodes (process-text-nodes page)
|
||||
nodes (d/index-by :id nodes)
|
||||
result (replace-text-nodes xmldata nodes)]
|
||||
result (replace-text-nodes xmldata nodes)
|
||||
|
||||
;; SVG standard don't allow the entity nbsp.   is equivalent but
|
||||
;; compatible with SVG
|
||||
result (str/replace result " " " ")]
|
||||
;; (println "------- ORIGIN:")
|
||||
;; (cljs.pprint/pprint (xml->clj xmldata))
|
||||
;; (println "------- RESULT:")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue