[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#587075: www.debian.org: Please fix quotes on RSS feed



Package: www.debian.org
Severity: wishlist
Tags: patch

Hi,

I plan to upload this fix this weekend (before the next DPN will be
published) if no one speaks against, or do it before.

Regards

David



--- ../../../english/News/weekly/dwn-to-rdf-current.pl	2010-06-24 20:19:18.804734436 -0400
+++ ../../../english/News/weekly/dwn-to-rdf.pl	2010-06-24 22:18:41.980736785 -0400
@@ -97,6 +98,17 @@
     $body =~ s/\\\n//g;
 
     # Conversion for the content
+    if ($ENV{LANGUAGE} eq 'fr') {
+      $headline =~ s/<q>/« /g;
+      $headline =~ s/<\/q>/ »/g;
+      $body =~ s/<q>/« /g;
+      $body =~ s/<\/q>/ »/g;
+    } else {
+      $headline =~ s/<q>/"/g;
+      $headline =~ s/<\/q>/"/g;
+      $body =~ s/<q>/"/g;
+      $body =~ s/<\/q>/"/g;
+    }
     $body =~ s/&/&amp;/g;
     $body =~ s/</&lt;/g;
     $body =~ s/>/&gt;/g;

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: