summaryrefslogtreecommitdiff
path: root/html/html.go
diff options
context:
space:
mode:
authorAdam Scarr <adam@vektah.net>2017-08-10 21:04:14 +1000
committerAdam Scarr <adam@vektah.net>2017-08-10 21:08:18 +1000
commitaf542eff9e1e51561a9efa37685ee07b1d01b53e (patch)
treec700bdca58b4f9bbeb89ba1b102b2a779c88f7f3 /html/html.go
parentb64fcfaa6115eb4a5f65c12d37f95d842136ae35 (diff)
Add parse logging
Diffstat (limited to 'html/html.go')
-rw-r--r--html/html.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/html/html.go b/html/html.go
index 2bbe921..0def587 100644
--- a/html/html.go
+++ b/html/html.go
@@ -42,16 +42,16 @@ var (
return Result{Result: attr}
})
- tstart = Seq("<", identifier, attrs, ">")
- tend = Seq("</", identifier, ">")
+ tstart = Seq("<", Cut, identifier, attrs, ">")
+ tend = Seq("</", Cut, identifier, ">")
)
func init() {
tag = Map(Seq(tstart, elements, tend), func(node Result) Result {
openTag := node.Child[0]
return Result{Result: Tag{
- Name: openTag.Child[1].Token,
- Attributes: openTag.Child[2].Result.(map[string]string),
+ Name: openTag.Child[2].Token,
+ Attributes: openTag.Child[3].Result.(map[string]string),
Body: node.Child[1].Result.([]interface{}),
}}