[Apt-listbugs-commits] [apt-listbugs] 02/02: improve portability of HTML bug lists
Francesco Poli
frx-guest at moszumanska.debian.org
Wed Jul 16 21:46:00 UTC 2014
This is an automated email from the git hooks/post-receive script.
frx-guest pushed a commit to branch master
in repository apt-listbugs.
commit d96ff87ec84e14042a243f281b142628f8f581bf
Author: Francesco Poli (wintermute) <invernomuto at paranoici.org>
Date: Wed Jul 16 23:42:03 2014 +0200
improve portability of HTML bug lists
See http://www.w3.org/TR/xhtml1/#C_9 for an explanation of the
usefulness of the meta http-equiv statement.
---
debian/changelog | 2 ++
lib/apt-listbugs/logic.rb | 4 +++-
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/debian/changelog b/debian/changelog
index 0a752cc..98ebf01 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -32,6 +32,8 @@ apt-listbugs (0.1.14) UNRELEASED; urgency=medium
* re-upgraded the recommendation of ruby-xmlparser to a dependency, since,
without it, apt-listbugs is really slow when retrieving large numbers of
bugs
+ * improved HTML bug lists (charset is now also declared in a meta http-equiv
+ statement, in order to enhance portability of the generated HTML page)
-- Francesco Poli (wintermute) <invernomuto at paranoici.org> Sun, 11 May 2014 16:45:18 +0200
diff --git a/lib/apt-listbugs/logic.rb b/lib/apt-listbugs/logic.rb
index 7fff3b4..aea30d2 100644
--- a/lib/apt-listbugs/logic.rb
+++ b/lib/apt-listbugs/logic.rb
@@ -727,7 +727,9 @@ class Viewer
tmp.puts "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\""
tmp.puts " \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">"
tmp.puts "\n<html xmlns=\"http://www.w3.org/1999/xhtml\">"
- tmp.puts "<head>\n <meta name=\"generator\" content=\"apt-listbugs\" />"
+ tmp.puts "<head>"
+ tmp.puts " <meta http-equiv=\"Content-type\" content=\"text/html; charset=#{Locale.charset}\" />"
+ tmp.puts " <meta name=\"generator\" content=\"apt-listbugs\" />"
tmp.puts "\n <title>" + _("Relevant bugs for your upgrade") + "</title>"
tmp.puts " <link href=\"/etc/apt/listbugs/bug-list.css\" rel=\"stylesheet\" type=\"text/css\" />"
tmp.puts "</head>\n\n<body>\n <div id=\"page_title\">"
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/apt-listbugs/apt-listbugs.git
More information about the Apt-listbugs-commits
mailing list