Explorar el Código

No pre for enclosure-description (#2808)

* No pre for enclosure-description

#fix https://github.com/FreshRSS/FreshRSS/issues/2807
In browsers, the styling `white-space:pre-line` will be applied by CSS,
but no styling will be done for clients via API.

* Corresponding CSS change
Alexandre Alapetite hace 6 años
padre
commit
925319653d
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  1. 1 1
      app/Models/Feed.php
  2. 1 1
      p/themes/base-theme/template.css

+ 1 - 1
app/Models/Feed.php

@@ -401,7 +401,7 @@ class FreshRSS_Feed extends Minz_Model {
 						$content .= $enclosureContent;
 
 						if ($enclosure->get_description() != '') {
-							$content .= '<pre class="enclosure-description">' . $enclosure->get_description() . '</pre>';
+							$content .= '<p class="enclosure-description">' . $enclosure->get_description() . '</p>';
 						}
 						$content .= "</div>\n";
 					}

+ 1 - 1
p/themes/base-theme/template.css

@@ -1135,7 +1135,7 @@ input:checked + .slide-container .properties {
 	margin-left: .8em;
 }
 
-pre.enclosure-description {
+.enclosure-description {
 	white-space: pre-line;
 }