diff options
Diffstat (limited to 'document.go')
| -rw-r--r-- | document.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/document.go b/document.go index aa89434..1fa88ed 100644 --- a/document.go +++ b/document.go @@ -215,8 +215,8 @@ func (doc *Document) ToHTML(out io.Writer) (err error) { var ok bool - _, ok = doc.Attributes.Entry[docAttrStylesheet] - if ok { + docAttrValue, ok = doc.Attributes.Entry[DocAttrStylesheet] + if ok && len(docAttrValue) == 0 { buf.WriteByte('\n') buf.WriteString(_defaultCSS) } |
