mirror of
https://github.com/penpot/penpot.git
synced 2026-05-15 04:54:10 +00:00
🐛 Add correct is-text-node? predicate to text processing methods
This commit is contained in:
parent
17bfed137c
commit
00390a1349
@ -130,8 +130,8 @@
|
||||
|
||||
(defn is-text-node?
|
||||
[node]
|
||||
(and (string? (:text node))
|
||||
(not= (:text node) "")))
|
||||
(and (nil? (:type node))
|
||||
(string? (:text node))))
|
||||
|
||||
(defn is-paragraph-set-node?
|
||||
[node]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user