html: Fix headline priority export

when #+OPTIONS: pri:t is set (org-export-with-priority) Org mode exports the
priority as {[A], [B], [C]}, not {A, B, C} - we should do the same
This commit is contained in:
Niklas Fasching 2018-12-18 14:21:46 +01:00
parent e9d9590d7a
commit d6b7424da5
2 changed files with 3 additions and 3 deletions

View file

@ -206,7 +206,7 @@ func (w *HTMLWriter) writeHeadline(h Headline) {
w.WriteString(fmt.Sprintf(`<span class="todo">%s</span>`, h.Status) + "\n")
}
if h.Priority != "" {
w.WriteString(fmt.Sprintf(`<span class="priority">%s</span>`, h.Priority) + "\n")
w.WriteString(fmt.Sprintf(`<span class="priority">[%s]</span>`, h.Priority) + "\n")
}
w.WriteString(title)