gohtml icon indicating copy to clipboard operation
gohtml copied to clipboard

Indentation is removed from JS within <script> tags

Open xyproto opened this issue 1 year ago • 0 comments

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>

xyproto avatar Jun 02 '23 13:06 xyproto