class documentation

Represents a diffable token, generally a word that is displayed to the user. Opening tags are attached to this token when they are adjacent (pre_tags) and closing tags that follow the word (post_tags). Some exceptions occur when there are empty tags adjacent to a word, so there may be close tags in pre_tags, or open tags in post_tags. We also keep track of whether the word was originally followed by whitespace, even though we do not want to treat the word as equivalent to a similar word that does not have a trailing space.

Method __new__ Undocumented
Method __repr__ Undocumented
Method html Undocumented
Class Variable hide_when_equal Undocumented
def __new__(cls, text, pre_tags=None, post_tags=None, trailing_whitespace=''): (source)

Undocumented

def __repr__(self): (source)

Undocumented

hide_when_equal: bool = (source)

Undocumented