Skip to content

Commit

Permalink
refactor: lowercase doctype declaration, see https://codeguide.co/#html
Browse files Browse the repository at this point in the history
  • Loading branch information
a-h committed Jun 27, 2021
1 parent 06cfb29 commit cc265e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generator/generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ func (g *generator) writeNode(indentLevel int, node parser.Node) error {

func (g *generator) writeDocType(indentLevel int, n parser.DocType) error {
var err error
if _, err = g.w.WriteIndent(indentLevel, fmt.Sprintf("_, err = io.WriteString(w, `<!DOCTYPE %s>`)\n", n.Value)); err != nil {
if _, err = g.w.WriteIndent(indentLevel, fmt.Sprintf("_, err = io.WriteString(w, `<!doctype %s>`)\n", n.Value)); err != nil {
return err
}
if err = g.writeErrorHandler(indentLevel); err != nil {
Expand Down

0 comments on commit cc265e5

Please sign in to comment.