Compare commits
2 commits
aded5b32cd
...
0403549897
Author | SHA1 | Date | |
---|---|---|---|
dece | 0403549897 | ||
dece | 93a73e0248 |
2
emoji.sh
2
emoji.sh
|
@ -11,7 +11,7 @@ UCD="$HOME/.local/share/emoji/ucd.all.flat.zip"
|
|||
GREP="rg"
|
||||
|
||||
usage() {
|
||||
echo "usage: $0 [-n] [-l LIMIT] FILTER"
|
||||
echo "Usage: $0 [OPTION]... FILTER"
|
||||
echo "Display emojis based on the name filter provided."
|
||||
echo " -h show usage"
|
||||
echo " -n hide emoji name"
|
||||
|
|
|
@ -192,7 +192,9 @@ def parse_common_cells(cells, meaning, is_new_meaning):
|
|||
|
||||
def parse_example_cells(cells, meaning):
|
||||
"""Parse cells of an example line (pretty much just the last one)."""
|
||||
meaning.ex.append(cells[-1].span.text)
|
||||
last_cell = cells[-1]
|
||||
if (span := last_cell.span):
|
||||
meaning.ex.append(span.text)
|
||||
|
||||
|
||||
def print_meaning(meaning):
|
||||
|
|
Loading…
Reference in a new issue