dm/ud
1
0
forked from sm/ud

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)
fmt.Printf(
"\n\n Example:\n %s\n",
strings.Replace(res.Example, "\r\n", "\n ", -1),
)
res.Example = strings.Replace(res.Example, "\r\n", "\n", -1)
res.Example = strings.Replace(res.Example, "\n", "\n ", -1)
fmt.Printf("\n\n Example:\n %s\n", res.Example)
fmt.Printf(
"\nSource: %s\nUp: %d, Down: %d\nAuthor: %s\n",
res.Link,