diff --git a/orrg.pl b/orrg.pl
index d5484c5d9e43bef1ef6b4836a2f24421b24b3a0d..eb3842dcbcca748d184b3664608c8f58991e197b 100755
--- a/orrg.pl
+++ b/orrg.pl
@@ -78,11 +78,15 @@ push @item, '';
}
if ($it->description ne '') {
my $desc = $it->description;
- chomp $desc;
$desc =~ s/\<li\>/* /igm;
$desc =~ s/\<br \/\>/\r\n/igm;
+ $desc = $hs->parse($desc);
+ $desc =~ s/^\r\n$//igm;
$desc =~ s/^\s+\*/*/igm;
- push @item, $hs->parse($desc);
+ $desc =~ s/\s+$//igm;
+ $desc =~ s/^\s+//igm;
+ chomp $desc;
+ push @item, $desc;
}
$link eq '' or push @item, ('=> '.$link.' open entry in browser', '');