Skip to content

"Insert code" option is inserting extra new line, and not count it on line dislocation #231

@JonatasAmaral

Description

@JonatasAmaral

Hi. I'm doing a tour, with requires inserting a mock in a unit test.
And found this bug:

The Insert Code option, in inserting the "new line" character at the end of the code block too:
. . . \n
```

The "line" parameter of the tour thought, just add up the amount of code lines, not the extra \n bit.
So it offsets the tour box from the original line.

Code_MkuEVLU4fi

Without this new line between code and the closing back-ticks, it doesn't match the code block sintax, so the option is not available

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