Change dashes to em dashes
This commit is contained in:
parent
c8726d8ba1
commit
f848de8f98
1 changed files with 3 additions and 3 deletions
6
wtf.py
6
wtf.py
|
|
@ -87,7 +87,7 @@ class Wtf:
|
||||||
explanations = await self.db.find(acronym)
|
explanations = await self.db.find(acronym)
|
||||||
if explanations:
|
if explanations:
|
||||||
# Acronym, Explanation
|
# Acronym, Explanation
|
||||||
lines = [f"{a} - {e}" for a, e in explanations]
|
lines = [f"{a} — {e}" for a, e in explanations]
|
||||||
text = "\n".join(lines)
|
text = "\n".join(lines)
|
||||||
await room.send(text, message.mid)
|
await room.send(text, message.mid)
|
||||||
else:
|
else:
|
||||||
|
|
@ -97,7 +97,7 @@ class Wtf:
|
||||||
acronym = match_add.group(1)
|
acronym = match_add.group(1)
|
||||||
explanation = match_add.group(2).strip()
|
explanation = match_add.group(2).strip()
|
||||||
await self.db.add(acronym, explanation, message.sender.nick)
|
await self.db.add(acronym, explanation, message.sender.nick)
|
||||||
await room.send(f"Added explanation: {acronym} - {explanation}", message.mid)
|
await room.send(f"Added explanation: {acronym} — {explanation}", message.mid)
|
||||||
logger.INFO(f"{mention(message.sender.nick)} added explanation: {acronym} - {explanation}")
|
logger.INFO(f"{mention(message.sender.nick)} added explanation: {acronym} - {explanation}")
|
||||||
|
|
||||||
elif match_detail:
|
elif match_detail:
|
||||||
|
|
@ -105,7 +105,7 @@ class Wtf:
|
||||||
explanations = await self.db.find_full(acronym)
|
explanations = await self.db.find_full(acronym)
|
||||||
if explanations:
|
if explanations:
|
||||||
# Id, Acronym, Explanation, aUthor
|
# Id, Acronym, Explanation, aUthor
|
||||||
lines = [f"{i}: {a} - {e} (by {mention(u, ping=False)})" for i, a, e, u in explanations]
|
lines = [f"{i}: {a} — {e} (by {mention(u, ping=False)})" for i, a, e, u in explanations]
|
||||||
text = "\n".join(lines)
|
text = "\n".join(lines)
|
||||||
await room.send(text, message.mid)
|
await room.send(text, message.mid)
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue