HasPre returns true if current white space option preserves existing whitespace (or at least requires that parser in case of PreLine, which is intermediate)
()
| 228 | // whitespace (or at least requires that parser in case of PreLine, which is |
| 229 | // intermediate) |
| 230 | func (ts *Text) HasPre() bool { |
| 231 | switch ts.WhiteSpace { |
| 232 | case WhiteSpaceNormal, WhiteSpaceNowrap: |
| 233 | return false |
| 234 | default: |
| 235 | return true |
| 236 | } |
| 237 | } |
no outgoing calls
no test coverage detected