Skip to content

Commit d3cd72a

Browse files
committed
UWC: do not lose description for graduated topics
1 parent 5a349d0 commit d3cd72a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

UWC

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ sub parse_whats_cooking {
9797
next;
9898
}
9999

100-
if (/^ [-+.?] / || /^ \S/) {
100+
if (/^ [-+.?*] / || /^ \S/) {
101101
$topic->{"names"} .= $_;
102102
next;
103103
}
@@ -151,8 +151,12 @@ sub merge_whats_cooking {
151151
my $newtopic = delete $new_wc->{"topic hash"}{$name};
152152

153153
if (!defined $newtopic) {
154+
$topic->{"text"} = ("<<deleted\n" .
155+
$topic->{"head"} .
156+
$topic->{"names"} .
157+
">>\n\n" .
158+
$topic->{"text"});
154159
$topic->{"names"} = "";
155-
$topic->{"text"} = "<<deleted>>";
156160
next;
157161
}
158162
if (($newtopic->{"names"} ne $topic->{"names"}) ||

0 commit comments

Comments
 (0)