Skip to content

Callouts break line continuations  #613

Open
@nik9000

Description

@nik9000
Member

Languages like bash and python require \ on the end of a line to signal that the next line is part of this line. Well, python only requires it sometimes and bash only requires it most of the time, but sometimes you need to stick the darn \ on the end of the line. The trouble is that if you have a callout after it like \ <1> then the html that gets rendered includes the space after the \ which breaks the line continuation, causing frustrating failures. I bet we could do something about this. I don't know what, but I think we should do something about this.

Activity

dedemorton

dedemorton commented on Feb 14, 2019

@dedemorton
Contributor

We should have a "copy code" button as I've descried here: #319

nik9000

nik9000 commented on Feb 15, 2019

@nik9000
MemberAuthor

Asciidoctor claims to support copy and paste safe callouts. I expect that is just their default when the generating a single html page. We won't get that for free because we generate docbook transform it to many html pages, but we could see about using the same technique it uses.

OTOH it wouldn't solve the power shell problem.

added
bugSomething that does not look or behave correctly
on May 11, 2020
gtback

gtback commented on May 11, 2020

@gtback
Member

I confirmed this is still an issue.

added
asciidocAsciidoc and our Asciidoctor extensions
on May 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    asciidocAsciidoc and our Asciidoctor extensionsbugSomething that does not look or behave correctly

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @nik9000@gtback@dedemorton

        Issue actions

          Callouts break line continuations · Issue #613 · elastic/docs