fixed formatting in example
This commit is contained in:
parent
6d59e99cd2
commit
4cf9210bf7
7
main.go
7
main.go
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user