Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
seisman committed Apr 29, 2024
1 parent 56f2253 commit 7f944ae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pygmt/encodings.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@
>>>
>>> mappings = charset["symbol"]
>>>
>>> undefined = "\ufffd"
>>> markdown = "| octal | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 |\n"
>>> markdown += "|---|---|---|---|---|---|---|---|---|\n"
>>> for i in range(0o040, 0o400, 8):
... chars = [f'&#x{ord(mappings.get(i, "\ufffd")):04x};' for i in range(i, i + 8)]
... chars = [f"&#x{ord(mappings.get(i, undefined)):04x};" for i in range(i, i + 8)]
... if all(c == chars[0] for c in chars):
... continue
... row = f"\\{i:03o}"[:-1] + "x"
Expand Down

0 comments on commit 7f944ae

Please sign in to comment.