Skip to content

Sometimes whitespace can't be copied from PDF #671

@Xmoe

Description

@Xmoe

When including a #raw code block, it will render whitespace and indentation as intended, however when copying from the pdf, indentation is not included.

Visualization of the problem:

Generated pdf looks fine
Screenshot_20230408_152514
Selecting text to copy
Screenshot_20230408_152535
Pasting text reveals missing indentation
Screenshot_20230408_152607

While pdf is not the best format to store code, it should not break whitespace-sensitive contents.

Metadata

Metadata

Assignees

No one assigned

    Labels

    pdfRelated to PDF export or PDF embedding.textRelated to the text category, which is all about text handling, shaping, etc.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions