Merge branch '1609-trimmed-text-length' into 'master'

Use trimmed length when deciding whether text is empty

Closes #1609

See merge request !1153
1 job for master in 8 minutes and 17 seconds (queued for 2 seconds)
Status Job ID Name Coverage
  Test
passed #3839
test

00:08:17