[SCM] pkg-kde.alioth.debian.org website branch, master, updated. 79db96ce40f842f6909817c244b44d8f85d0dfa8

Pino Toscano pino at alioth.debian.org
Tue Sep 3 22:24:22 UTC 2013


Gitweb-URL: http://git.debian.org/?p=pkg-kde/www.git;a=commitdiff;h=79db96c

The following commit has been merged in the master branch:
commit 79db96ce40f842f6909817c244b44d8f85d0dfa8
Author: Pino Toscano <pino at debian.org>
Date:   Wed Sep 4 00:21:37 2013 +0200

    genrss: validation fixes
    
    - replace the <br /> only next to the <title>, not any other occurrences
      in the document
    - put the text inside <description> as CDATA, so HTML tags can be added
      cleanly
    - do not strip <a> tags anymore, since they are represented correctly
      now
---
 genrss.sh |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/genrss.sh b/genrss.sh
index 1998f51..5ecc68a 100644
--- a/genrss.sh
+++ b/genrss.sh
@@ -27,7 +27,7 @@ cat <<__EOHEAD__
 </image>
 __EOHEAD__
 
-tail -n +${NEWS_START} ${FILE} | head -n +${NEWS_END} | sed  's/<a[^>]*>//g' | sed 's/<\/a[^>]*>//g' | sed 's,<p>,<item>,g;s,</p>,</description></item>,g;s,<strong>,<title>,g;s,</strong>,</title>,g;s,<br />,<link>http://pkg-kde.alioth.debian.org/</link><description>,g'
+tail -n +${NEWS_START} ${FILE} | head -n +${NEWS_END} | sed -r 's,<p>,<item>,g;s,</p>,]]></description></item>,g;s,<strong>,<title>,g;s,</strong>,</title>,g;s,(</title>\s*)<br />,<link>http://pkg-kde.alioth.debian.org/</link><description><![CDATA[,g'
 
 cat << __EOFOOT__
         </channel>

-- 
pkg-kde.alioth.debian.org website



More information about the pkg-kde-commits mailing list