From 538fa3b3c5422ad102b719960fac08c5e28691c1 Mon Sep 17 00:00:00 2001 From: linchen2chris Date: Thu, 2 Mar 2023 17:54:06 +0800 Subject: [PATCH] make classname with priority and lowercase --- 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 4738151..fa458be 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, h.Status) + "\n") + w.WriteString(fmt.Sprintf(`%s`, strings.ToLower(h.Status), h.Status) + "\n") } if w.document.GetOption("pri") != "nil" && h.Priority != "" { - w.WriteString(fmt.Sprintf(`[%s]`, h.Priority, h.Priority) + "\n") + w.WriteString(fmt.Sprintf(`[%s]`, strings.ToLower(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, tag) + tags[i] = fmt.Sprintf(`%s`, strings.ToLower(tag), tag) } w.WriteString("   ") w.WriteString(fmt.Sprintf(`%s`, strings.Join(tags, " ")))