From db2757cc107da3869ce3cc930038ae0963a2b8d7 Mon Sep 17 00:00:00 2001 From: Antonio Ospite Date: Fri, 23 Feb 2018 15:34:02 +0100 Subject: [PATCH] rss_converter_twitter.com.xsl: preserve spaces in tweet content Wrap the tweet content into a span element with a CSS style attribute set to "white-space: pre-wrap", this allows to have the spaces rendered like on the twitter web page: with spaces and newlines preserved. This is especially desirable if the tweet content contains any ASCII art, like in https://twitter.com/sarahjeong/status/955651919279722496 --- src/rss_converter_twitter.com.xsl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/rss_converter_twitter.com.xsl b/src/rss_converter_twitter.com.xsl index b6b4257..44a0416 100644 --- a/src/rss_converter_twitter.com.xsl +++ b/src/rss_converter_twitter.com.xsl @@ -153,7 +153,10 @@ (Video) - + + white-space: pre-wrap; + + ]]> -- 2.1.4