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:
parent
e9d9590d7a
commit
d6b7424da5
2 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
|
|
4
org/testdata/headlines.html
vendored
4
org/testdata/headlines.html
vendored
|
@ -22,7 +22,7 @@ not just where they are actually meant to be - even here > <code class="stati
|
|||
</ul>
|
||||
<h1>
|
||||
<span class="todo">TODO</span>
|
||||
<span class="priority">B</span>
|
||||
<span class="priority">[B]</span>
|
||||
Headline with todo status & priority
|
||||
</h1>
|
||||
<h1>
|
||||
|
@ -33,7 +33,7 @@ Headline with TODO status
|
|||
the <strong>content</strong>
|
||||
</p>
|
||||
<h1>
|
||||
<span class="priority">A</span>
|
||||
<span class="priority">[A]</span>
|
||||
Headline with tags & priority   <span class="tags"><span>foo</span> <span>bar</span></span>
|
||||
</h1>
|
||||
<p>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue