mirror of
https://github.com/aljazceru/njump.git
synced 2026-01-31 11:44:34 +01:00
fix json empty tags indentation.
This commit is contained in:
8
utils.go
8
utils.go
@@ -504,14 +504,18 @@ func eventToHTML(evt *nostr.Event) template.HTML {
|
||||
tagsHTML += "\n <span class=" + cls + ">" + html.EscapeString(string(itemJSON))
|
||||
if i < len(tag)-1 {
|
||||
tagsHTML += ","
|
||||
} else {
|
||||
tagsHTML += "\n "
|
||||
}
|
||||
}
|
||||
tagsHTML += "\n ]"
|
||||
tagsHTML += "]"
|
||||
if t < len(evt.Tags)-1 {
|
||||
tagsHTML += ","
|
||||
} else {
|
||||
tagsHTML += "\n "
|
||||
}
|
||||
}
|
||||
tagsHTML += "\n ]"
|
||||
tagsHTML += "]"
|
||||
|
||||
contentJSON, _ := json.Marshal(evt.Content)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user