From a0f299be21903e629f862421e36001e7e9425665 Mon Sep 17 00:00:00 2001 From: DanielMowitz Date: Wed, 20 Oct 2021 10:54:07 +0200 Subject: [PATCH] Feed entries are now marked in bold instead of cursive. Also removed the [0] after updated feed titles. --- src/mark-new-feed-entries | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mark-new-feed-entries b/src/mark-new-feed-entries index f7bc881..9c385d3 100644 --- a/src/mark-new-feed-entries +++ b/src/mark-new-feed-entries @@ -29,7 +29,7 @@ do if [ "$time" -gt "$curr" ] then news=$(($news + 1)) - lines+=("$(echo $line | sed -e 's/^\( *\)- *\(.*\)$/\1- \*\2\*/')") + lines+=("$(echo $line | sed -e 's/^\( *\)- *\(.*\)$/\1- \*\*\2\*\*/')") else lines+=("$line") fi @@ -37,7 +37,7 @@ done < $file if [ "$news" -gt "0" ] then - lines[0]=`echo "$lines[0]" | sed -e "s/^#\(#*\) *\(.*\)$/#\1 \*\2 ($news)\*/"` + lines[0]=`echo "$lines" | sed -e "s/^#\(#*\) *\(.*\)$/#\1 \*\*\2 ($news)\*\*/"` fi for line in "${lines[@]}"