Skip to content

Export with code block indent doesn't work correctly #10848

@dmytrodubinin

Description

@dmytrodubinin

Search first

  • I searched and no similar issues were found

What Happened?

When I try to use "Copy/Export as.." feature with indent code block and with anabled Indentation style to "no-indent" the code block doesn't follow of this settings. It has full indent as in original document.

Reproduce the Bug

Here is the demo. You can see that code inside code block has indent even if "no-indent" is anabled and in original code block also no indentation in the beginning of the code.

Screencast.from.2024-01-12.11-10-18.mp4

It's not very useful when I try to export big document where code block is in deep indent level. It export with many indentations inside code and I need to format it again for correct display.

Expected Behavior

No response

Screenshots

No response

Desktop or Mobile Platform Information

Logseq 0.10.3, Fedora Linux, AppImage package version

Additional Context

No response

Are you willing to submit a PR? If you know how to fix the bug.

  • I'm willing to submit a PR (Thank you!)

Metadata

Metadata

Assignees

No one assigned

    Labels

    :type/bugSomething isn't working. Affects daily use.parserMarkdown/Org parser related

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions