Toggle layout.word_select.eat_space_to_next_word to true if you are not on Windows.
Double-click to select the last word in these elements that end with a new line:
[Good] I'm a <p> element with a new line after the last word
[Bad] Ditto plus I have style="white-space: pre-line" applied
[Good] Ditto but I have style="white-space: pre" applied
style="white-space: pre-line" applied
style="white-space: pre" applied
style="white-space: pre-line" applied
style="white-space: pre" applied
| [Good] I'm a <td> element with a new line after the last word |
[Bad] Ditto plus I have style="white-space: pre-line" applied
|
[Good] Ditto but I have style="white-space: pre" applied
|