Fix comments: comments must start with #\s not just #

This commit is contained in:
Niklas Fasching 2020-07-28 19:28:30 +02:00
parent 16ccafe8a3
commit c025db7bdd
5 changed files with 9 additions and 2 deletions

View file

@ -207,7 +207,7 @@ func (w *OrgWriter) WriteNodeWithName(n NodeWithName) {
}
func (w *OrgWriter) WriteComment(c Comment) {
w.WriteString(w.indent + "#" + c.Content + "\n")
w.WriteString(w.indent + "# " + c.Content + "\n")
}
func (w *OrgWriter) WriteList(l List) { WriteNodes(w, l.Items...) }