Splitting icon indicating copy to clipboard operation
Splitting copied to clipboard

White space issue fixed

Open Gbillington1 opened this issue 5 years ago • 1 comments

Before this edit, on lines 49 and 62, you were using createText to insert a whitespace before and after certain elements. This would add the whitespace so the sentence didn't have any missing whitespaces, but those new whitespaces weren't being added to the allElements array. This makes those newly create whitespaces to be un-splittable. By taking line 54 and replacing lines 46. and 62. you add these whitespaces to the allElements array, allowing them to be split correctly.

Gbillington1 avatar Mar 17 '20 22:03 Gbillington1