Skip to content

Function definition is messed up in downloaded image #1541

@p0syd0n

Description

@p0syd0n

Describe the bug
I define a function, and in the image download, the content of the function is outside of the function brackets.
To Reproduce

function printData() {
  console.log("data");
}

printData(5);

And then download, as PNG

Expected behavior
A correct image is generated
Screenshots
Screenshot showing incorrect image code formatting

Info (please complete the following information):

  • OS [e.g. macOS, Linux, Windows, iOS]: Chrome
  • Browser [e.g. Chrome, Safari, Firefox]: Chrome
  • Carbon URL [e.g. carbon.now.sh?bg=pink]: URL

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions