aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Lemon <matt@matthewlemon.com>2022-09-22 15:49:50 +0100
committerMatthew Lemon <matt@matthewlemon.com>2022-09-22 15:49:50 +0100
commit5062af007700e775d128ca2e7e925c0b74ceed60 (patch)
tree326b78dc64b517867d8123bbeb7fa21cc717c9c3
parentacd497fa8762c94f7ca714fe73f6e7217578d91d (diff)
attempting to make a markdown list using regex
-rwxr-xr-xcalendar/dayplan_revised.pl2
1 files changed, 2 insertions, 0 deletions
diff --git a/calendar/dayplan_revised.pl b/calendar/dayplan_revised.pl
index a28fef1..ba3352e 100755
--- a/calendar/dayplan_revised.pl
+++ b/calendar/dayplan_revised.pl
@@ -113,6 +113,8 @@ sub remindersblock {
my $reminders = qx(ssh bobbins remind ~/.reminders $y-$m-$d);
$reminders =~ s/\s{2,}/\n/gs;
$reminders =~ s/^Reminders.+\:\n//;
+ $reminders =~ s/^/\* /gs;
+ $reminders =~ s/\n/\n\* /gs;
my $rheader = "\n# Reminders:\n";
return $rheader . $reminders;
}