mirror of https://github.com/logseq/logseq
fix(org): remove extra line when deadline or scheduled added
parent
953f3ad335
commit
76fbeb87de
|
@ -990,9 +990,10 @@
|
|||
new-line (str (string/upper-case key) ": " value)
|
||||
new-content (let [lines (string/split-lines content)
|
||||
new-lines (map (fn [line]
|
||||
(string/trim
|
||||
(if (string/starts-with? (string/lower-case line) key)
|
||||
new-line
|
||||
line))
|
||||
line)))
|
||||
lines)
|
||||
new-lines (if (not= lines new-lines)
|
||||
new-lines
|
||||
|
|
Loading…
Reference in New Issue