fixed formatting in example

This commit is contained in:
Stephen McQuay 2015-01-24 02:26:38 -08:00
parent 6d59e99cd2
commit 4cf9210bf7

View File

@ -88,10 +88,9 @@ func main() {
) )
} }
doc.ToText(os.Stdout, res.Definition, "", "", 80) doc.ToText(os.Stdout, res.Definition, "", "", 80)
fmt.Printf( res.Example = strings.Replace(res.Example, "\r\n", "\n", -1)
"\n\n Example:\n %s\n", res.Example = strings.Replace(res.Example, "\n", "\n ", -1)
strings.Replace(res.Example, "\r\n", "\n ", -1), fmt.Printf("\n\n Example:\n %s\n", res.Example)
)
fmt.Printf( fmt.Printf(
"\nSource: %s\nUp: %d, Down: %d\nAuthor: %s\n", "\nSource: %s\nUp: %d, Down: %d\nAuthor: %s\n",
res.Link, res.Link,