mirror of https://github.com/logseq/logseq
Some cleanup suggested by Gabe
parent
edd79954c1
commit
da72d4d620
|
@ -129,7 +129,7 @@
|
|||
[s]
|
||||
(when s
|
||||
(some->>
|
||||
(string/split s #"[\,|,]{1}")
|
||||
(string/split s #",")
|
||||
(remove string/blank?)
|
||||
(map string/trim))))
|
||||
|
||||
|
@ -153,9 +153,7 @@
|
|||
[(string/trim v)]))
|
||||
refs)
|
||||
k (if (or (symbol? k) (keyword? k)) (subs (str k) 1) k)
|
||||
v (if (or (symbol? v) (keyword? v))
|
||||
(subs (str v) 1)
|
||||
(str v))
|
||||
v (subs (str v) 1)
|
||||
v (string/trim v)
|
||||
non-string-property (parse-non-string-property-value v)]
|
||||
(cond
|
||||
|
|
|
@ -1916,7 +1916,6 @@
|
|||
;; because :block/properties value only contains refs but user wants to see text
|
||||
property-separated-by-commas? (text/separated-by-commas? (state/get-config) k)
|
||||
v (if (and (coll? value) (seq value)
|
||||
(not (contains? gp-property/editable-linkable-built-in-properties k))
|
||||
(not property-separated-by-commas?))
|
||||
(gp-property/property-value-from-content (name k) (:block/content block))
|
||||
value)
|
||||
|
|
Loading…
Reference in New Issue