Skip to content

Copying from a code-block inserts newline characters #459

@rweickelt

Description

@rweickelt

Is there an existing issue for this?

  • I have searched the existing issues

PDF produced by rinohtype

Codde-blocks like this:

.. code-block::
    :caption: bla

    Hello World

are rendered optically correct:

Image

But when trying to copy code from a PDF using Atril document viewer on Linux, it looks like there is a newline inserted after each character:

Image

Copying normal float text works, I can also copy-paste above caption without issues. There seems something special with code blocks.

Source files

.. code-block::
    :caption: bla

    Hello World

Versions

0.5.6.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bad outputrinohtype's output is not correctbug

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions