Skip to content

[Plugin API] .insertBatchBlock cuts off 2 spaces from all content lines, except of first one #10730

@stdword

Description

@stdword

Search first

  • I searched and no similar issues were found

What Happened?

Related issue: #10729

Demo:

2023-12-20 18 35 31

Reproduce the Bug

  1. Insert block via API call: logseq.api.insert_batch_block('<any block UUID>', {content: 'TEST\n next line'}, {before: false, sibling: true}) — note 3 spaces before second content line
  2. Note the inserted content: it contains only 1 space before second line

Expected Behavior

Do not cut content via API insertion at all.

Desktop or Mobile Platform Information

MacOS v13.4
Logseq Desktop v0.10.1

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions