Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/pydom/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
ChildType,
Renderable,
)
from .unicode_chars import *
from .version import version as __version__

set_default_context(Context.standard())
Expand Down Expand Up @@ -160,4 +161,11 @@
"Page",
"StyleSheet",
"__version__",

# Unicode characters
"nbsp",
"thinsp",
"ZeroWidthSpace",
"emsp",
"hairsp",
]
20 changes: 20 additions & 0 deletions src/pydom/unicode_chars.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
nbsp = "\u00A0"
"""Non-breaking space character."""

thinsp = "\u2009"
"""Thin space character."""

ZeroWidthSpace = "\u200B"
"""
Zero-width space character.

HTML5 support only.
"""

emsp = "\u2003"
"""Em space character."""


hairsp = "\u200A"
"""Hair space character."""