Skip to content

Selected-block Text export omits children of Text-property values #1390

Closed

Description

@tiensonqin

What happened

In a local DB graph, selected blocks → Copy / Export as… → Text silently leaves out children and grandchildren belonging to a Text-property value. The value title and an ordinary outline child are retained. The omission occurs in the preview and in the actual saved .txt file.

The source graph is unchanged. This is loss from the exported text, not deletion from the graph. The same selection exported as EDN contains the property descendants and imports them correctly into another local graph.

Environment

  • Official logseq/logseq master 22263c36204c86949df6cb4bfa278be0aa215353
  • Native Electron development app, Logseq DB 2.0.1
  • Electron 42.3.0 / Chromium 148.0.7778.180
  • Debian GNU/Linux 13, x86_64
  • Local disposable DB graphs, sync off; no production source changes
  • Observed October 1, 2026. Web app and authenticated sync were not tested

Reproduction

  1. In a local DB graph, create a page QA-Text-Transfer with two root blocks:
    • QA transfer owner, with ordinary child QA ordinary child
    • QA transfer control
  2. On QA transfer owner, add a new property QA Transfer Note, type Text, with Multiple values off.
  3. Enter QA property value as its value. Open/zoom into the property value if necessary, and give that value child QA value child, with grandchild QA value grandchild.
  4. Return to the page and reload. Confirm the ownership below: the value child/grandchild are under the property's value; the ordinary child is directly under the owner.
  5. Select both root blocks and all their descendants. One keyboard route is to edit the owner's text, press Escape to select the block, then Shift+Down to extend through the control root. Verify the entire fixture is selected.
  6. Right-click the selected text/blank area (not a bullet that would change selection), choose Copy / Export as…, and select Text.
  7. Keep remove properties unchecked, open blocks only (skip collapsed children) unchecked, and level <= all. The fixture can be fully expanded.
  8. Inspect the preview, then click Save to file and inspect the resulting .txt.
  9. Close the export dialog, reload the source, and repeat steps 5–8.

Source ownership:

QA transfer owner
  QA Transfer Note = QA property value
    [child of the value] QA value child
      QA value grandchild
  [ordinary child of the owner] QA ordinary child
QA transfer control

Actual result

Both property descendants are absent. The saved Text output is:

- QA transfer owner
  QA Transfer Note:: QA property value  
	- QA ordinary child
- QA transfer control

There is no warning that part of the selected subtree was omitted.

Expected result

With properties included, all levels selected, and collapsed children not excluded, Text export should include the Text value's child and grandchild as well as the ordinary outline child. Their relationship to the property value should remain understandable.

Frequency and controls

  • 2/2 independent export-dialog openings on the same fixture, including a repeat after source reload, showed the omission
  • The actual saved Text file was inspected and matched the incomplete preview
  • The same selected fixture's native EDN contained all six titles and the correct property-owned hierarchy
  • First EDN import into a different local graph retained the complete hierarchy and root order after reload
  • Editing only the imported grandchild persisted in the destination; reloading the original graph showed its original grandchild unchanged

Exact EDN control from the native exporter:

{:pages-and-blocks
 [{:page {:block/title "QA-Text-Transfer"},
   :blocks
   [{:block/title "QA transfer owner",
     :build/properties
     {:user.property/QATransferNote-iT9hu8yC
      {:build/property-value :block,
       :block/title "QA property value",
       :build/children
       [{:block/title "QA value child",
         :build/children [{:block/title "QA value grandchild"}]}]}},
     :build/children [{:block/title "QA ordinary child"}]}
    {:block/title "QA transfer control"}]}],
 :properties
 {:user.property/QATransferNote-iT9hu8yC
  {:db/cardinality :db.cardinality/one,
   :logseq.property/type :default,
   :block/title "QA Transfer Note"}},
 :logseq.db.sqlite.export/export-type :selected-nodes}

Related reports and source hypothesis

This is closely related to closed #1107, fixed for Markdown mirror by logseq/logseq#13106. This report specifically covers the current selected-block Text export path. Closed #756 covers EDN property-child export/import; that control passed here. Open #1218 / logseq/logseq#13309 concerns scalar/list formatting, which is a different symptom.

A read-only source trace suggests a missing caller option, not a newly proven general exporter failure: selection export's content config does not supply :export-default-property-values-as-blocks?. The common property export helper only visits the value's children when that flag is true, whereas Markdown mirror explicitly enables it. This is a source hypothesis consistent with the UI/file observations, not a runtime trace or proof of when the gap was introduced.

Activity

  1. yuxi-liu-wired commented on Oct 27, 2026

    @yuxi-liu-wired

    Fixed in logseq/logseq#13887 (fix(export): Text property values in exports and the Markdown mirror; no repeated blocks in selected-block EDN). Its description has the cause and the test that pins it; it fails on current master and passes with the fix.

  2. added 12 commits that reference this issue on Oct 28, 2026
    b47acdd
    c69c8e3
    8fb6251
    b9d20a8
    12a0b5e
    ed04b8b
    618c5fd
    d7f4d53
    8a49a4d
    e91a3e1
    6564d45
    6a53bfd
  3. added 12 commits that reference this issue on Nov 11, 2026
    c5327ee
    8f08874
    c7f0a9b
    bad9d52
    0200698
    ba7eb2a
    e8af779
    9f5be9c
    d44ec99
    76c32a5
    bf2d90b
    bcfae68
  4. added 4 commits that reference this issue on Nov 18, 2026
    15b184b
    f1c1043
    c54b0c4
    1e55b31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions