diff --git a/orrg.pl b/orrg.pl
index 8da5f714c55956f5e00bbf5cd8275a873249d2ae..6ed425ae47375b14567217025b6d415f433a6837 100755
--- a/orrg.pl
+++ b/orrg.pl
@@ -26,7 +26,7 @@
my $query = lc(uri_unescape($ENV{'QUERY_STRING'}));
if ($query eq '' || $query !~ /^(https|gemini)\:\/\//) {
- write_response('INPUT', 'Paste the URI of the rss feed you want to read:', undef);
+ write_response('INPUT', 'Paste the URI of the rss feed you want to read', undef);
}
write_response('SUCCESS', 'text/gemini', create_response($query));
@@ -77,8 +77,9 @@ if ($desc ne '') {
$desc =~ s/\<li\>/* /igm;
$desc =~ s/\<h[1-2][^\>]+\>/### /igm;
$desc =~ s/\<br \/\>/\r\n/igm;
+ $desc =~ s/\<pre.*\>/\r\n```\r\n/igm;
+ $desc =~ s/\<\/pre\>/\r\n```\r\n/igm;
$desc = $hs->parse($desc);
- $desc = trim_ws($desc);
}
push @item, (($desc ne '' && $desc ne $title) || $it->pubDate ne '')? '## '. $title : $title;
if ($it->pubDate ne '') {