diff --git a/orrg.pl b/orrg.pl
index 1be767a230394ae95b8eb91d07b61b192d2feb67..35458b2a68e7db614afe7cda48d6673840e23b57 100755
--- a/orrg.pl
+++ b/orrg.pl
@@ -74,13 +74,13 @@ push @body, ('## recent feed items', '');
my $hs = HTML::Strip->new(emit_spaces => 0, auto_reset => 1);
foreach my $it ($feed->get_item()) {
- push @body, $it->description ne '' ? '### '. $it->title : $it->title;
+ push @body, ($it->description ne '' || $it->pubDate ne '')? '### '. $it->title : $it->title;
if ($it->pubDate ne '') {
my $dt = DateTime::Format::ISO8601->parse_datetime($it->pubDate);
push @body, 'published '. strftime('%Y-%m-%dT%H:%M:%SZ', gmtime($dt->epoch));
+ push @body, '';
}
if ($it->description ne '') {
- push @body, '';
my $desc = $it->description;
chomp $desc;
$desc =~ s/\<li\>/* /ig;