commit 7d1a09873ed080ad438adf4ad4d2800f93cc0271
parent d552d04dbdd45497ea28654b9ec3a01ef2c6fb67
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sat, 9 Dec 2017 12:46:35 +0100
sfeed_opml_export: remove a level of indentation
Diffstat:
1 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/sfeed_opml_export b/sfeed_opml_export
@@ -25,7 +25,8 @@ loadconfig() {
# override feeds function to ouput opml XML.
# feed(name, feedurl, [basesiteurl], [encoding])
feed() {
- printf '\t\t<outline title="%s" text="%s" xmlUrl="%s" htmlUrl="%s"/>\n' "$1" "$1" "$2" "$3"
+ printf '\t<outline title="%s" text="%s" xmlUrl="%s" htmlUrl="%s"/>\n' \
+ "$1" "$1" "$2" "$3"
}
# load config file.
@@ -34,10 +35,10 @@ loadconfig "$1"
cat <<!
<?xml version="1.0" encoding="UTF-8"?>
<opml version="1.0">
- <head>
- <title>opml export from sfeed</title>
- </head>
- <body>
+<head>
+ <title>opml export from sfeed</title>
+</head>
+<body>
!
feeds
@@ -45,6 +46,6 @@ feeds
wait
cat <<!
- </body>
+</body>
</opml>
!