Revision history for Perl extension Apache::Gallery.
+1.0.2~1 Tue Mar 15 03:08:57 CET 2011
+
+ - Extended GalleryUnderscoresToSpaces to filenames as well.
+ (Debian bug #348724, Francesco Potortì)
+
1.0.1 Wed Feb 23 20:45:38 CET 2011
- Added missing template files to MANIFEST
GalleryUnderscoresToSpaces
Set this option to 1 to convert underscores to spaces in the listing
- of directory names.
+ of directory and file names, as well as in the alt attribute for HTML
+ <img> tags.
GalleryCommentExifKey
Set this option to e.g. ImageDescription to use this field as comments
-libapache-gallery-perl (1.0.1-1) UNRELEASED; urgency=low
+libapache-gallery-perl (1.0.1-1) unstable; urgency=low
* New upstream release
+ * Change underscores to spaces for images too (Closes: #348724)
- -- Don Armstrong <don@debian.org> Wed, 16 Mar 2011 08:59:31 -0700
+ -- Don Armstrong <don@debian.org> Wed, 28 Sep 2011 12:34:55 -0700
libapache-gallery-perl (0.99-svn060811-1) unstable; urgency=low
$filetype = "unknown";
}
+ # Debian bug #348724 <http://bugs.debian.org/348724>
+ # not images
+ my $filetitle = $file;
+ $filetitle =~ s/_/ /g if $r->dir_config('GalleryUnderscoresToSpaces');
+
$tpl_vars{FILES} .=
$templates{file}->fill_in(HASH => {%tpl_vars,
FILEURL => uri_escape($fileurl, $escape_rule),
ALT => "Size: $size Bytes",
- FILE => $file,
+ FILE => $filetitle,
TYPE => $type,
FILETYPE => $filetype,
}
my $cached = get_scaled_picture_name($thumbfilename, $thumbnailwidth, $thumbnailheight);
my $rotate = readfile_getnum($r, $imageinfo, $thumbfilename.".rotate");
+
+ # Debian bug #348724 <http://bugs.debian.org/348724>
+ # HTML <img> tag, alt attribute
+ my $filetitle = $file;
+ $filetitle =~ s/_/ /g if $r->dir_config('GalleryUnderscoresToSpaces');
+
my %file_vars = (FILEURL => uri_escape($fileurl, $escape_rule),
- FILE => $file,
+ FILE => $filetitle,
DATE => $imageinfo->{DateTimeOriginal} ? $imageinfo->{DateTimeOriginal} : '', # should this really be a stat of the file instead of ''?
SRC => uri_escape($uri."/.cache/$cached", $escape_rule),
HEIGHT => (grep($rotate==$_, (1, 3)) ? $thumbnailwidth : $thumbnailheight),
=item B<GalleryUnderscoresToSpaces>
Set this option to 1 to convert underscores to spaces in the listing
-of directory names.
+of directory and file names, as well as in the alt attribute for HTML
+<img> tags.
=back