todo_widget: Use colon `:` as task and description display separator.

Uptil now, a dash `-` was used to separate the task from its (optional)
description. But a colon `:` was used in the `/todo` command syntax to
indicate where the task ends and it's description starts.

To make the separator symbol consistent for both the syntax and widget,
`:` is used for both. It was chosen over `-` as `:` is encountered less
often in normal language, and so accidental usage of it when using the
`/todo` command syntax is less likely. It is also is impossible to
confuse with the bullet list syntax which is allowed for tasks.
This commit is contained in:
N-Shar-ma 2022-08-19 13:24:52 +05:30 committed by Tim Abbott
parent e537195a85
commit 7ef3ce9e8b
1 changed files with 2 additions and 2 deletions

View File

@ -8,9 +8,9 @@
</div> </div>
<div> <div>
{{#if completed}} {{#if completed}}
<strike><strong>{{ task }}</strong>{{#if desc }} - {{ desc }}{{/if}}</strike> <strike><strong>{{ task }}</strong>{{#if desc }}: {{ desc }}{{/if}}</strike>
{{else}} {{else}}
<strong>{{ task }}</strong>{{#if desc }} - {{ desc }}{{/if}} <strong>{{ task }}</strong>{{#if desc }}: {{ desc }}{{/if}}
{{/if}} {{/if}}
</div> </div>
</label> </label>