Skip to content

Commit

Permalink
Simplified addStyle
Browse files Browse the repository at this point in the history
  • Loading branch information
pgaskin committed May 21, 2018
1 parent 4a911da commit 8687447
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions kepubify.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,16 +211,13 @@ func main() {
style := &html.Node{
Type: html.ElementNode,
Data: "style",
Attr: []html.Attribute{
html.Attribute{
Key: "type",
Val: "text/css",
},
html.Attribute{
Key: "class",
Val: class,
},
},
Attr: []html.Attribute{{
Key: "type",
Val: "text/css",
}, {
Key: "class",
Val: class,
}},
}

style.AppendChild(&html.Node{
Expand Down

0 comments on commit 8687447

Please sign in to comment.