protonscr

Tweets don't preserve line breaks [New Chat UI]

steamopen Steam client
ValveSoftware/steam-for-linux#6119 · opened 2019-03-02 by DarthTealc · updated 2019-07-18 · 0 comments · github
DDarthTealc 2019-03-02 github

Please describe your issue in as much detail as possible:

Tweets don't preserve line breaks which can make them hard to read. Twitter is using text linebreaks rather than <br> elements.

Steps for reproducing this issue:

  1. Find a tweet with line breaks
  2. Post it in Steam Chat
  3. Have difficulty reading it

Suggested solution:

white-space: pre-wrap on the bbcode_ChatMessageTweet_Body in friends.css Suggested location

Screenshots:

image
Top: Current Steam Chat
Bottom: With white-space: pre-wrap applied
Right: Tweet on twitter.com

This is more an issue for tweets where people talk in short paragraphs or lists rather than ASCII art but I couldn't easily find an example that wasn't political or promotional.

Nothing extracted yet.