aboutsummaryrefslogtreecommitdiff
path: root/document_parser.go
diff options
context:
space:
mode:
Diffstat (limited to 'document_parser.go')
-rw-r--r--document_parser.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/document_parser.go b/document_parser.go
index 74c14b6..ca167e6 100644
--- a/document_parser.go
+++ b/document_parser.go
@@ -398,7 +398,7 @@ func (docp *documentParser) parseBlock(parent *element, term int) {
}
el.Attrs[key] = value
} else {
- _ = docp.doc.Attributes.apply(key, value)
+ _ = docp.doc.setAttribute(key, value)
parent.addChild(&element{
kind: docp.kind,
key: key,
@@ -750,7 +750,7 @@ func (docp *documentParser) parseHeader() {
var key, value string
key, value, ok = docp.parseAttribute(line, false)
if ok {
- _ = docp.doc.Attributes.apply(key, value)
+ _ = docp.doc.setAttribute(key, value)
}
line = nil
continue