Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
87c134fa
Commit
87c134fa
authored
May 14, 2002
by
Steven Wittens
Browse files
Possible bug with filtering: linebreaks inside style's got converted into breaks.
parent
cc59e1f1
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/poll.module
View file @
87c134fa
...
...
@@ -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
!=
""
)
{
...
...
modules/poll/poll.module
View file @
87c134fa
...
...
@@ -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
!=
""
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment