Add new dotted and dashed underline enum

Also use "straight" for single underline, consistent with the protocol
extension document.
This commit is contained in:
pagedown
2022-01-22 11:00:49 +08:00
parent 17e31565e2
commit a47aca6fdb
3 changed files with 6 additions and 3 deletions

View File

@@ -170,7 +170,7 @@ STANDARD_COLORS = {name: i for i, name in enumerate(
'black red green yellow blue magenta cyan gray'.split())}
STANDARD_COLORS['white'] = STANDARD_COLORS['gray']
UNDERLINE_STYLES = {name: i + 1 for i, name in enumerate(
'straight double curly'.split())}
'straight double curly dotted dashed'.split())}
ColorSpec = Union[int, str, Color]