Skip to content

Indentation is removed from JS within <script> tags #22

@xyproto

Description

@xyproto

Hi! Thanks for creating the gohtml package. I'm using it in Orbiton for formatting HTML from within the editor.

However, JavaScript code that is embedded within <script> tags seems to have indentation removed, so that:

<script>
  if (1 + 1 == 2) {
      x = 42
  }
</script>

Is formatted like this:

<script>
  if (1 + 1 == 2) {
  x = 42
  }
</script>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions