telegram: In highlight of editions, use dash (-) instead of dot (.) for
patch ecba573e04bccde171413d8064bd44c957952ad2
Author: E. Bosch <presidev@AT@gmail.com>
Date: Sun May 7 02:24:08 CEST 2023
* telegram: In highlight of editions, use dash (-) instead of dot (.) for
marking words deleted, that represents strikethrough.
Add some comments to the code
diff -rN -u old-irgramd/utils.py new-irgramd/utils.py
--- old-irgramd/utils.py 2024-11-22 16:24:57.780447830 +0100
+++ new-irgramd/utils.py 2024-11-22 16:24:57.780447830 +0100
@@ -150,8 +150,10 @@
elif i == ' ' or i == '+ ':
res += ' '
continue
+ # deletion of words
elif i[0] == '-':
- res += '.{}. '.format(i[2:])
+ res += '-{}- '.format(i[2:])
+ # addition of words
elif i[0] == '+':
res += '_{}_ '.format(i[2:])
else: