Honor FEED_CONTENT to print feed contents if requested and present - 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 0cca50f2c0e714f4eee6b9c78e5444ff522dcd07
(DIR) parent 53af7c9fe19b3a80f4a760a801645ac67dac3884
(HTM) Author: Leonardo Taccari <iamleot@gmail.com>
Date: Sat, 8 Sep 2018 00:39:36
Honor FEED_CONTENT to print feed contents if requested and present
Diffstat:
common/feed.sh | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff -r 53af7c9fe19b -r 0cca50f2c0e7 common/feed.sh
--- a/common/feed.sh Fri Sep 07 22:16:34 2018 +0200
+++ b/common/feed.sh Sat Sep 08 00:39:36 2018 +0200
@@ -40,6 +40,15 @@
} else {
printf("[h|%s|URL:%s|server|port]\n", desc, link)
}
+
+ if (feed_content && content) {
+ gsub("^", "t", content)
+ gsub("\\\\n", "\nt", content)
+ gsub("\\\\t", "\t", content)
+ gsub("\\\\\\\\", "\\", content)
+
+ printf("%s\n\n", content)
+ }
}
'
}