singleLineFieldValue collapses carriage returns and newlines so a multi-line field value stays within a single table cell. Following the convention used by StatusItem.Preview, carriage returns are dropped and newlines become spaces.
(s string)
| 502 | // field value stays within a single table cell. Following the convention used by |
| 503 | // StatusItem.Preview, carriage returns are dropped and newlines become spaces. |
| 504 | func singleLineFieldValue(s string) string { |
| 505 | return strings.ReplaceAll(strings.ReplaceAll(s, "\r", ""), "\n", " ") |
| 506 | } |
| 507 | |
| 508 | type DraftIssue struct { |
| 509 | ID string |
no outgoing calls