changed from map nil check to length check
Realized that since the map is initialized it will never be `nil`pull/541/head
parent
269dc6e00d
commit
3df9bbfdc1
2
html.go
2
html.go
|
@ -695,7 +695,7 @@ func (options *Html) DocumentHeader(out *bytes.Buffer) {
|
|||
out.WriteString(ending)
|
||||
out.WriteString(">\n")
|
||||
// plug the user-specified <meta.../> tags
|
||||
if options.meta != nil {
|
||||
if len(options.meta) > 0 {
|
||||
for k, v := range options.meta {
|
||||
out.WriteString(" <meta " + k + " content=\"" + v + "\"")
|
||||
out.WriteString(ending)
|
||||
|
|
Loading…
Reference in New Issue