diff options
-rwxr-xr-x | sfeed_opml_export | 9 |
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("&", "\\&"); gsub("\"", "\\""); gsub("'"'"'", "\\'"); gsub("<", "\\<"); gsub(">", "\\>"); - print "\t<outline title=\"" $1 "\" text=\"" $1 "\" xmlUrl=\"" $2 "\" htmlUrl=\"" $3 "\"/>"; + print "\t<outline type=\"rss\" title=\"" $1 "\" text=\"" $1 "\" xmlUrl=\"" $2 "\"/>"; }' cat <<! |