Update go-org to optimize code (#8824)

This commit is contained in:
Lauris BH 2019-11-05 10:39:03 +02:00 committed by Lunny Xiao
parent 2f4ef84cbf
commit 05e7715c4b
19 changed files with 4824 additions and 113 deletions

View file

@ -90,7 +90,7 @@ func New() *Configuration {
}
// String returns the pretty printed Org mode string for the given nodes (see OrgWriter).
func String(nodes []Node) string { return orgWriter.nodesAsString(nodes...) }
func String(nodes []Node) string { return orgWriter.WriteNodesAsString(nodes...) }
// Write is called after with an instance of the Writer interface to export a parsed Document into another format.
func (d *Document) Write(w Writer) (out string, err error) {