Strip all leading and trailing whitespaces. - gophercgis - Collection of gopher CGI/DCGI for geomyidae
(HTM) hg clone https://bitbucket.org/iamleot/gophercgis
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) changeset 2452226c51b81b8294e0b1a437f42e2ded8c24aa
(DIR) parent b00668cfbd8d8b355b3f8805215c9d094f539794
(HTM) Author: Leonardo Taccari <iamleot@gmail.com>
Date: Tue, 4 Sep 2018 00:30:59
Strip all leading and trailing whitespaces.
Diffstat:
ansa/feed.dcgi | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff -r b00668cfbd8d -r 2452226c51b8 ansa/feed.dcgi
--- a/ansa/feed.dcgi Sat Sep 01 10:52:22 2018 +0200
+++ b/ansa/feed.dcgi Tue Sep 04 00:30:59 2018 +0200
@@ -33,8 +33,8 @@
title && link {
gsub("\\|", "\\|", title)
gsub("\\|", "\\|", link)
- gsub("^<!\\[CDATA\\[", "", title)
- gsub("\\]\\]>$", "", title)
+ gsub("^<!\\[CDATA\\[ *", "", title)
+ gsub(" *\\]\\]>$", "", title)
printf("[0|%s|'"${ARTICLE_CGI}?"'%s|server|port]\n", title, link)