From acd8b842b6d83dc7d4906705bc4c82c792e4d0de Mon Sep 17 00:00:00 2001 From: linchen2chris Date: Tue, 21 Feb 2023 18:48:17 +0800 Subject: [PATCH] make it possible to customize style for status/priority/tag --- org/html_writer.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/org/html_writer.go b/org/html_writer.go index e763aa7..4738151 100644 --- a/org/html_writer.go +++ b/org/html_writer.go @@ -293,17 +293,17 @@ func (w *HTMLWriter) WriteHeadline(h Headline) { w.WriteString(fmt.Sprintf(`
`, h.ID(), level) + "\n") w.WriteString(fmt.Sprintf(``, level, h.ID()) + "\n") if w.document.GetOption("todo") != "nil" && h.Status != "" { - w.WriteString(fmt.Sprintf(`%s`, h.Status) + "\n") + w.WriteString(fmt.Sprintf(`%s`, h.Status, h.Status) + "\n") } if w.document.GetOption("pri") != "nil" && h.Priority != "" { - w.WriteString(fmt.Sprintf(`[%s]`, h.Priority) + "\n") + w.WriteString(fmt.Sprintf(`[%s]`, h.Priority, h.Priority) + "\n") } WriteNodes(w, h.Title...) if w.document.GetOption("tags") != "nil" && len(h.Tags) != 0 { tags := make([]string, len(h.Tags)) for i, tag := range h.Tags { - tags[i] = fmt.Sprintf(`%s`, tag) + tags[i] = fmt.Sprintf(`%s`, tag, tag) } w.WriteString("   ") w.WriteString(fmt.Sprintf(`%s`, strings.Join(tags, " ")))