fix: whitespace on advanced query string import

Fixes https://github.com/logseq/db-test/issues/193
This commit is contained in:
Gabriel Horner
2025-05-14 16:06:23 -04:00
parent 1d8869a4a3
commit f34a8d57a0
4 changed files with 47 additions and 10 deletions

View File

@@ -1,5 +1,5 @@
- For example, here's a query with title text:
{{query (property type book)}}
{{query (property type book)}}
- test multilines in this page
- |markdown| table|
|some|thing|
@@ -21,3 +21,24 @@
:query (task todo doing)}
#+END_QUERY
Text after
- collapsed:: true
#+BEGIN_QUERY
{:title "⌛ Pretty print advanced query test"
:query [:find (pull ?b [*])
:in $ ?today
:where
[?b :block/page ?p]
[?p :page/journal? true]
[?p :page/journal-day ?jd]
[(str ?jd) ?jds]
[(subs ?jds 4 8) ?md1]
[(str ?today) ?td]
[(subs ?td 4 8) ?md2]
[(= ?md1 ?md2)]
[(< ?jd ?today)]
]
:inputs [:today]
:breadcrumb-show? true
:collapsed? False
}
#+END_QUERY