.Dd July 6, 2021 .Dt SFEED 5 .Os .Sh NAME .Nm sfeed .Nd feed format .Sh SYNOPSIS .Nm .Sh DESCRIPTION .Xr sfeed 1 writes the feed data in a TAB-separated format to stdout. .Sh TAB-SEPARATED FORMAT FIELDS The items are output per line in a TSV-like format. .Pp The fields: title, id, author are not allowed to have newlines and TABs, all whitespace characters are replaced by a single space character. Control characters are removed. .Pp The content field can contain newlines and is escaped. TABs, newlines and '\\' are escaped with '\\', so it becomes: '\\t', '\\n' and '\\\\'. Other whitespace characters except spaces are removed. Control characters are removed. .Pp The order and content of the fields are: .Bl -tag -width 15n .It 1. timestamp UNIX timestamp in UTC+0, empty if missing or on parse failure. .It 2. title Title text, HTML code in titles is ignored and is treated as plain-text. .It 3. link Link .It 4. content Content, can have plain-text or HTML code depending on the content-type field. .It 5. content-type "html" or "plain" if it has content. .It 6. id RSS item GUID or Atom id. .It 7. author Item author. .It 8. enclosure Item, first enclosure. .It 9. category Item, categories, multiple values are separated by |. .El .Sh SEE ALSO .Xr sfeed 1 , .Xr sfeed_plain 1 .Sh AUTHORS .An Hiltjo Posthuma Aq Mt hiltjo@codemadness.org .Sh CAVEATS If a timezone is not in the RFC-822 or RFC-3339 format it is not supported and the UNIX timestamp is interpreted as UTC+0. .Pp HTML in titles is treated as plain-text.