Skip to content

Commit

Permalink
JS AST: fix indenting for comments
Browse files Browse the repository at this point in the history
  • Loading branch information
tdewolff committed Nov 23, 2023
1 parent 66aef60 commit 3910eb8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions js/ast.go
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,9 @@ func (n Comment) String() string {

// JS writes JavaScript to writer.
func (n Comment) JS(w io.Writer) {
if wi, ok := w.(Indenter); ok {
w = wi.w
}
w.Write(n.Value)
w.Write([]byte("\n"))
}
Expand Down

0 comments on commit 3910eb8

Please sign in to comment.