(b *strings.Builder, trimmedLine string, isInitial bool)
| 783 | } |
| 784 | |
| 785 | func addLineOfJsxText(b *strings.Builder, trimmedLine string, isInitial bool) { |
| 786 | // We do not escape the string here as that is handled by the printer |
| 787 | // when it emits the literal. We do, however, need to decode JSX entities. |
| 788 | decoded := decodeEntities(trimmedLine) |
| 789 | if !isInitial { |
| 790 | b.WriteString(" ") |
| 791 | } |
| 792 | b.WriteString(decoded) |
| 793 | } |
| 794 | |
| 795 | /** |
| 796 | * JSX trims whitespace at the end and beginning of lines, except that the |
no test coverage detected