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
......@@ -242,10 +242,10 @@ function poll_view(&$node, $main = 0, $block = 0) {
$votesmax = max($votesmax, 1);
// Define CSS classes for the bars
$output .= "<style type=\"text/css\">\n";
$output .= "td.pollfg { background-color: ". $theme->foreground ."; font-size: 5pt; }\n";
$output .= "td.pollbg { background-color: ". $theme->background ."; font-size: 5pt; }\n";
$output .= "</style>\n";
$output .= "<style type=\"text/css\">";
$output .= "td.pollfg { background-color: ". $theme->foreground ."; font-size: 5pt; }";
$output .= "td.pollbg { background-color: ". $theme->background ."; font-size: 5pt; }";
$output .= "</style>";
foreach ($node->choice as $key => $value) {
if ($value != "") {
......
......@@ -242,10 +242,10 @@ function poll_view(&$node, $main = 0, $block = 0) {
$votesmax = max($votesmax, 1);
// Define CSS classes for the bars
$output .= "<style type=\"text/css\">\n";
$output .= "td.pollfg { background-color: ". $theme->foreground ."; font-size: 5pt; }\n";
$output .= "td.pollbg { background-color: ". $theme->background ."; font-size: 5pt; }\n";
$output .= "</style>\n";
$output .= "<style type=\"text/css\">";
$output .= "td.pollfg { background-color: ". $theme->foreground ."; font-size: 5pt; }";
$output .= "td.pollbg { background-color: ". $theme->background ."; font-size: 5pt; }";
$output .= "</style>";
foreach ($node->choice as $key => $value) {
if ($value != "") {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment