From: Mischa POSLAWSKY Date: Sun, 18 Oct 2009 18:40:03 +0000 (+0000) Subject: minor code cosmetics (declare version first) X-Git-Tag: v1.3~96 X-Git-Url: http://git.shiar.nl/sheet.git/commitdiff_plain/f850d8bca38d6f025cd26b62b6e5504dd4d77ad1 minor code cosmetics (declare version first) --- diff --git a/mplayer.plp b/mplayer.plp index 9d7028d..5cd7d16 100644 --- a/mplayer.plp +++ b/mplayer.plp @@ -1,8 +1,8 @@ <(common.inc.plp)><: - use Shiar_Sheet::KeySigns qw(%sign); - our $VERSION = 'v1.0'; + use Shiar_Sheet::KeySigns qw(%sign); + $header{content_type} = "text/html; charset=$sign{charset}"; :><: - use Shiar_Sheet::KeySigns qw(%sign); - our $VERSION = 'v1.0'; + use Shiar_Sheet::KeySigns qw(%sign); + $header{content_type} = "text/html; charset=$sign{charset}"; :><: - use Shiar_Sheet::KeySigns qw(%sign); - our $VERSION = 'v1.0'; + use Shiar_Sheet::KeySigns qw(%sign); + $header{content_type} = "text/html; charset=$sign{charset}"; :><: - use Shiar_Sheet::KeySigns qw(%sign); # dependant on $get{ascii} - our $VERSION = 'v1.0'; + use Shiar_Sheet::KeySigns qw(%sign); # dependant on $get{ascii} + $header{content_type} = "text/html; charset=$sign{charset}"; :>[0] && ($TYPETAG{ $_->[0] } || 'span'); my $arg = ''; print "<$tag$arg class=\"sy-\l$_->[0]\">" if $tag; - if ($_->[0] eq 'Constant' - and $_->[1] =~ s{^(['"])(/?[a-z0-9_.]+\.(?:plp?|css|js))(?=\1$)}{}) { + if (!$_->[0] || $_->[0] eq 'Constant' + and $_->[1] =~ s{^(['"]?)(/?[a-z0-9_.]+\.(?:plp?|css|js))(?=\1$)}{}) { printf '%s%s', $1, "/source/$2", $2; } if (!$_->[0] and $_->[1] =~ s/^(\s*)([A-Z]\w+(?:::\w+)+)(?![^;\s])//) { diff --git a/termcol.plp b/termcol.plp index 321ea63..0eb10b2 100644 --- a/termcol.plp +++ b/termcol.plp @@ -1,8 +1,8 @@ <(common.inc.plp)><: - use List::Util 'min'; - our $VERSION = 'v1.0'; + use List::Util 'min'; + :> diff --git a/vim.plp b/vim.plp index cd855bf..62587c0 100644 --- a/vim.plp +++ b/vim.plp @@ -1,8 +1,8 @@ <(common.inc.plp)><: - use Shiar_Sheet::KeySigns qw(%sign); # dependant on $get{ascii} - our $VERSION = 'v1.2'; + use Shiar_Sheet::KeySigns qw(%sign); # dependant on $get{ascii} + $header{content_type} = "text/html; charset=$sign{charset}"; :><: - use Shiar_Sheet::KeySigns qw(%sign); - our $VERSION = 'v1.0'; + use Shiar_Sheet::KeySigns qw(%sign); + $header{content_type} = "text/html; charset=$sign{charset}"; :>