projects
/
pxelator
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f3e7114
)
each configuration option is now div, with classes config and name of option
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Mon, 7 Sep 2009 15:43:55 +0000
(15:43 +0000)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Mon, 7 Sep 2009 15:43:55 +0000
(15:43 +0000)
lib/PXElator/html.pm
patch
|
blob
|
history
diff --git
a/lib/PXElator/html.pm
b/lib/PXElator/html.pm
index
90a9a7e
..
a1fd6f6
100644
(file)
--- a/
lib/PXElator/html.pm
+++ b/
lib/PXElator/html.pm
@@
-100,14
+100,14
@@
sub conf {
$html =~ s{\s(\S{16}).+(\S{16})\s}{ $1..$2 };
chomp($html);
}
- $html = qq|<
pre style="display: inline">$html</pre
>|
+ $html = qq|<
tt>$html</tt
>|
unless
$html =~ s{\b(\S+)\t(\S+)\t(\S+)\b}{<b title="$1/$2">$3</b> }gs;
if ( $format =~ /edit|table/ ) {
( $name, $html );
} else {
- qq|<
em>$name</em> $html<br
>|
+ qq|<
div class="config $name"><em>$name</em> $html</div
>|
}
}
} grep { length($conf->{$_}) > 0 } sort keys %$conf;