From eb280b5aabe36c0a321ec770f4716e944c675a33 Mon Sep 17 00:00:00 2001 From: "Schimon Jehudah, Adv." Date: Fri, 12 Jul 2024 18:05:33 +0300 Subject: [PATCH] Default to content type HTML; Correct name to XHTML; Improve CSS. --- css/stylesheet.css | 6 ++++-- pubsub_to_atom.py | 2 +- xsl/atom_as_xhtml.xsl | 2 +- xsl/opml_as_xhtml.xsl | 2 +- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/css/stylesheet.css b/css/stylesheet.css index 537c838..9afd063 100644 --- a/css/stylesheet.css +++ b/css/stylesheet.css @@ -9,8 +9,7 @@ body { code, pre { overflow: auto; - display: inline-block; - max-height: 500px; + max-height: 100%; max-width: 100%; } img, video { @@ -23,6 +22,8 @@ img, video { /* margin-left: 2%; */ /* margin-top: 2%; */ text-align: center; + padding-top: 100px; + padding-bottom: 150px; } h1#title, h2#subtitle, #actions, #references { @@ -77,6 +78,7 @@ h1#title, h2#subtitle, #actions, #references { #articles #journal { margin-left: 2%; margin-right: 2%; + margin-top: 2%; min-width: 350px; padding-bottom: 0.67em; width: 20%; diff --git a/pubsub_to_atom.py b/pubsub_to_atom.py index 5fead04..0c78193 100644 --- a/pubsub_to_atom.py +++ b/pubsub_to_atom.py @@ -298,7 +298,7 @@ def generate_atom(iq, link): content_type = content.attrib['type'] if 'type' in content.attrib else 'text' content_type_text = 'html' if 'html' in content_type else 'text' else: - content_type_text = 'text' + content_type_text = 'html' published = item_payload.find(namespace + 'published') published_text = None if published == None else published.text updated = item_payload.find(namespace + 'updated') diff --git a/xsl/atom_as_xhtml.xsl b/xsl/atom_as_xhtml.xsl index 6801549..5422a29 100644 --- a/xsl/atom_as_xhtml.xsl +++ b/xsl/atom_as_xhtml.xsl @@ -433,7 +433,7 @@ xmlns:atom='http://www.w3.org/2005/Atom'>

- This is an XMPP news feed which is conveyed as an HTML + This is an XMPP news feed which is conveyed as an XHTML document, and it can even be viewed by a syndication feed reader which provides automated notifications on desktop and mobile. Click diff --git a/xsl/opml_as_xhtml.xsl b/xsl/opml_as_xhtml.xsl index 6304ef6..5531e0f 100644 --- a/xsl/opml_as_xhtml.xsl +++ b/xsl/opml_as_xhtml.xsl @@ -211,7 +211,7 @@ xmlns:xml='http://www.w3.org/XML/1998/namespace'> This is an OPML - document which is conveyed as an HTML document; This + document which is conveyed as an XHTML document; This document includes a list of subscriptionsis and is intended to be imported to a syndication feed reader which provides automated notifications on desktop and