(text, indent string)
| 337 | } |
| 338 | |
| 339 | func indent(text, indent string) string { |
| 340 | if text[len(text)-1:] == "\n" { |
| 341 | result := "" |
| 342 | for _, j := range strings.Split(text[:len(text)-1], "\n") { |
| 343 | result += indent + j + "\n" |
| 344 | } |
| 345 | return result |
| 346 | } |
| 347 | result := "" |
| 348 | for _, j := range strings.Split(strings.TrimRight(text, "\n"), "\n") { |
| 349 | result += indent + j + "\n" |
| 350 | } |
| 351 | return result[:len(result)-1] |
| 352 | } |
| 353 | |
| 354 | func boolean(v bool) string { |
| 355 | if v { |
no outgoing calls