Filter out whitespace-only nodes in speech during editable text feedback
Sometimes, we get inline text boxes containing only whitespace in the middle or end of a line. This is typically fine if the whitespace is the only text. However, there are situations where we want this whitespace not to be queued. When there is non-whitespace text in the line: inLineTextBox: "this is a soft-wrap" inLineTextBox.nextOnLine: " " inLineTextBox: "of text" becomes (for the first line): "this is a soft-wrap", "space" inlineTextBox: "this" inLineTextBox.nextOnLine: " " inLineTextBox.nextOnLine.nextOnLine: "is" becomes "this", "space", "is" Test: manual. Cq-Include-Trybots: master.tryserver.chromium.linux:closure_compilation Change-Id: If8524c90f4187704bbf1dcfb5580e5697eedeccf Reviewed-on: https://chromium-review.googlesource.com/1015657Reviewed-by:Dominic Mazzoni <dmazzoni@chromium.org> Commit-Queue: David Tseng <dtseng@chromium.org> Cr-Commit-Position: refs/heads/master@{#551767}
Showing
Please register or sign in to comment