Skip to content
Snippets Groups Projects
Commit 87c134fa authored by Steven Wittens's avatar Steven Wittens
Browse files

Possible bug with filtering: linebreaks inside style's got converted into breaks.

parent cc59e1f1
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -242,10 +242,10 @@ function poll_view(&$node, $main = 0, $block = 0) { ...@@ -242,10 +242,10 @@ function poll_view(&$node, $main = 0, $block = 0) {
$votesmax = max($votesmax, 1); $votesmax = max($votesmax, 1);
// Define CSS classes for the bars // Define CSS classes for the bars
$output .= "<style type=\"text/css\">\n"; $output .= "<style type=\"text/css\">";
$output .= "td.pollfg { background-color: ". $theme->foreground ."; font-size: 5pt; }\n"; $output .= "td.pollfg { background-color: ". $theme->foreground ."; font-size: 5pt; }";
$output .= "td.pollbg { background-color: ". $theme->background ."; font-size: 5pt; }\n"; $output .= "td.pollbg { background-color: ". $theme->background ."; font-size: 5pt; }";
$output .= "</style>\n"; $output .= "</style>";
foreach ($node->choice as $key => $value) { foreach ($node->choice as $key => $value) {
if ($value != "") { if ($value != "") {
......
...@@ -242,10 +242,10 @@ function poll_view(&$node, $main = 0, $block = 0) { ...@@ -242,10 +242,10 @@ function poll_view(&$node, $main = 0, $block = 0) {
$votesmax = max($votesmax, 1); $votesmax = max($votesmax, 1);
// Define CSS classes for the bars // Define CSS classes for the bars
$output .= "<style type=\"text/css\">\n"; $output .= "<style type=\"text/css\">";
$output .= "td.pollfg { background-color: ". $theme->foreground ."; font-size: 5pt; }\n"; $output .= "td.pollfg { background-color: ". $theme->foreground ."; font-size: 5pt; }";
$output .= "td.pollbg { background-color: ". $theme->background ."; font-size: 5pt; }\n"; $output .= "td.pollbg { background-color: ". $theme->background ."; font-size: 5pt; }";
$output .= "</style>\n"; $output .= "</style>";
foreach ($node->choice as $key => $value) { foreach ($node->choice as $key => $value) {
if ($value != "") { if ($value != "") {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment