summaryrefslogtreecommitdiff
path: root/sfeed_opml_export
diff options
context:
space:
mode:
Diffstat (limited to 'sfeed_opml_export')
-rwxr-xr-xsfeed_opml_export9
1 files changed, 3 insertions, 6 deletions
diff --git a/sfeed_opml_export b/sfeed_opml_export
index b2510d4..908f6fb 100755
--- a/sfeed_opml_export
+++ b/sfeed_opml_export
@@ -26,7 +26,7 @@ loadconfig() {
# feed(name, feedurl, [basesiteurl], [encoding])
feed() {
# NOTE: TABs in field values are unsupported, be sane.
- echo "$1 $2 $3"
+ echo "$1 $2"
}
# load config file.
@@ -41,17 +41,14 @@ cat <<!
<body>
!
-feeds | LC_ALL=C awk 'BEGIN {
- FS = OFS = "\t";
-}
-{
+feeds | awk -F '\t' '{
gsub("&", "\\&amp;");
gsub("\"", "\\&quot;");
gsub("'"'"'", "\\&#39;");
gsub("<", "\\&lt;");
gsub(">", "\\&gt;");
- print "\t<outline title=\"" $1 "\" text=\"" $1 "\" xmlUrl=\"" $2 "\" htmlUrl=\"" $3 "\"/>";
+ print "\t<outline type=\"rss\" title=\"" $1 "\" text=\"" $1 "\" xmlUrl=\"" $2 "\"/>";
}'
cat <<!