If you change a task's status, for example, and accidentally type " " in the comment field, you will see a blank line in the history view.
Trim leading and trailing whitespace, before applying emptiness test on the comment value.
If you change a task's status, for example, and accidentally type " " in the comment field, you will see a blank line in the history view.
Trim leading and trailing whitespace, before applying emptiness test on the comment value.
Just wanted to test how this bug manifests itself (see above) and if it's different from @Krenair's T125834 (it is; T125802#1998113 looks different).
This should be resolved upstream by https://secure.phabricator.com/D20562.
I'm going to tweak the title here to align it slightly better to the desired/implemented behavior: it's intentional that we don't trim leading and trailing whitespace out of the input entirely because <space><space>xyz is a valid comment starting with a piece of codeblock-formatted text.
Closing as per last comment as a more recent software version is now deployed on phabricator.wikimedia.org.
If this is still a problem, then please set the status of this report back to "Open" via the Add Action... → Change Status dropdown. Thanks!