Skip to content

code snippet button delete the current line when placing the snippet #684

@ccossou

Description

@ccossou

In AsciiDocFX 1.8.10, I place the cursor at the beginning of one line, for instance, in this example, the line just after the section:

== my section
my line|

(the vertical bar materialise the active cursor position)

Then I click on the button "code snippet".

I end up with:

== my section[source,]
----

|----

while I expected to have:

== my section
my line[source,]
----
|
----

Note that I'm on windows. On a side note, if I select a text, clicking on the 'code snippet' button, I delete the selected text while some other software will just wrap the selected text in a code snippet. But I understand in this context that this is just a wish for future enhancement and not part of this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions