Default to content type HTML;

Correct name to XHTML;
Improve CSS.
This commit is contained in:
Schimon Jehudah, Adv. 2024-07-12 18:05:33 +03:00
parent 694c8bb489
commit eb280b5aab
4 changed files with 7 additions and 5 deletions

View file

@ -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%;

View file

@ -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')

View file

@ -433,7 +433,7 @@ xmlns:atom='http://www.w3.org/2005/Atom'>
<!-- note -->
<p id='note'>
<i>
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. <span id="selection-link">Click

View file

@ -211,7 +211,7 @@ xmlns:xml='http://www.w3.org/XML/1998/namespace'>
<i>
This is an
<b title ='Outline Processor Markup Language'>OPML</b>
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