mirror of
https://github.com/rkd77/elinks.git
synced 2024-10-13 05:43:37 -04:00
Skip entities with unknown unicode (0x????)
This commit is contained in:
parent
395a64f569
commit
8c684e8c73
@ -7,6 +7,7 @@ sed -n '/^[^#]/,$p' < entities.txt | while read line; do \
|
||||
name=$(echo "$line" | cut -f 1); \
|
||||
code=$(echo "$line" | cut -f 3); \
|
||||
desc=$(echo "$line" | cut -f 4 | sed 's/# //'); \
|
||||
test "$code" = "0x????" && continue
|
||||
printf "\t{ %-12s %s }, /* %-46s */\n" \
|
||||
"\"$name\"," "$code" "$desc"; \
|
||||
done | LC_ALL=C sort > tmp
|
||||
|
Loading…
Reference in New Issue
Block a user