Misc cleanup: SETUP_FILE -> SETUPFILE, empty example lines, ...

This commit is contained in:
Niklas Fasching 2018-12-20 15:39:49 +01:00
parent d1054063cf
commit bc9c496f97
11 changed files with 17 additions and 15 deletions

View file

@ -191,8 +191,10 @@ func (w *OrgWriter) writeParagraph(p Paragraph) {
func (w *OrgWriter) writeExample(e Example) {
for _, n := range e.Children {
w.WriteString(w.indent + ":" + " ")
w.writeNodes(n)
w.WriteString(w.indent + ":")
if content := w.nodesAsString(n); content != "" {
w.WriteString(" " + content)
}
w.WriteString("\n")
}
}