From ac57b9dd19333db9bed34bc70d945568292b77de Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 26 Jul 2013 18:26:28 +0400 Subject: [PATCH] add experimental css hyphens support for english language --- classes/feeds.php | 2 +- css/cdm.css | 3 +++ css/tt-rss.css | 6 ++++++ include/functions.php | 2 +- 4 files changed, 11 insertions(+), 2 deletions(-) diff --git a/classes/feeds.php b/classes/feeds.php index def24521..adc86d21 100644 --- a/classes/feeds.php +++ b/classes/feeds.php @@ -621,7 +621,7 @@ class Feeds extends Handler_Protected { } $reply['content'] .= ""; - $reply['content'] .= "
"; + $reply['content'] .= "
"; if ($line["orig_feed_id"]) { diff --git a/css/cdm.css b/css/cdm.css index 2e1ffd2a..234f5339 100644 --- a/css/cdm.css +++ b/css/cdm.css @@ -223,6 +223,9 @@ div.cdm .hlFeed a { div.cdmContentInner p { max-width : 650px; text-align : justify; + -webkit-hyphens: auto; + -moz-hyphens: auto; + hyphens: auto; } div.cdmContentInner iframe { diff --git a/css/tt-rss.css b/css/tt-rss.css index ce30167e..f07154a3 100644 --- a/css/tt-rss.css +++ b/css/tt-rss.css @@ -995,6 +995,9 @@ span.collapseBtn { div.postContent p { max-width : 650px; text-align : justify; + -webkit-hyphens: auto; + -moz-hyphens: auto; + hyphens: auto; } div.postContent iframe { @@ -1018,6 +1021,9 @@ body#ttrssZoom { body#ttrssZoom div.postContent p { max-width : 650px; text-align : justify; + -webkit-hyphens: auto; + -moz-hyphens: auto; + hyphens: auto; } body#ttrssZoom div.postHeader { diff --git a/include/functions.php b/include/functions.php index ef5905fe..ccf530d1 100644 --- a/include/functions.php +++ b/include/functions.php @@ -3286,7 +3286,7 @@ } $rv['content'] .= "
"; - $rv['content'] .= "
"; + $rv['content'] .= "
"; $rv['content'] .= $line["content"]; $rv['content'] .= format_article_enclosures($id, -- 2.39.2