summaryrefslogtreecommitdiff
path: root/sfeed_web.1
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2020-10-21 22:06:58 +0200
committerHiltjo Posthuma <hiltjo@codemadness.org>2020-10-22 18:52:46 +0200
commite771e43d51830ec7d2a19d9d4e67cded83c1b302 (patch)
tree08ca320c92816b3086b7c6d97e3d4bc8e43b81e9 /sfeed_web.1
parentf054e581dac4921b302e0459a40d1b4f1fbd28ae (diff)
sfeed_web: attribute parsing improvements, improve man page
Fix attribute parsing and now decode entities. The following now works (from helsinkitimes.fi): <base href="https://www.helsinkitimes.fi/" /> <link href="/?format=feed&amp;type=rss" rel="alternate" type="application/rss+xml" title="RSS 2.0" /> <link href="/?format=feed&amp;type=atom" rel="alternate" type="application/atom+xml" title="Atom 1.0" /> Properly associate attributes with the actual tag, this now parses properly (from ascii.jp). <link rel="apple-touch-icon-precomposed" href="/img/apple-touch-icon.png" /> <link rel="alternate" type="application/rss+xml" />
Diffstat (limited to 'sfeed_web.1')
-rw-r--r--sfeed_web.113
1 files changed, 6 insertions, 7 deletions
diff --git a/sfeed_web.1 b/sfeed_web.1
index 1f7d0cc..5b93d9b 100644
--- a/sfeed_web.1
+++ b/sfeed_web.1
@@ -1,4 +1,4 @@
-.Dd March 15, 2020
+.Dd October 22, 2020
.Dt SFEED_WEB 1
.Os
.Sh NAME
@@ -21,13 +21,12 @@ url<TAB>content\-type<newline>
.Bl -tag -width Ds
.It url
Found relative or absolute url.
-If the url is relative and the
+.Pp
+For relative urls if a <base href="..." /> tag is found it will be used,
+otherwise if the
.Ar baseurl
-option is
-specified then the url is made absolute.
-If the url is relative and no
-.Ar baseurl
-option is specified then it is printed as is.
+option is specified then that is used, if neither are set then the relative url
+is printed.
.It content\-type
Usually application/atom+xml or application/rss+xml.
.El