Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/VectifyAI/OpenKB
/ _rstrip_trailing_space
Function
_rstrip_trailing_space
openkb/agent/_markdown.py:364–370 ·
view source on GitHub ↗
(text: Text)
Source
from the content-addressed store, hash-verified
362
363
364
def
_rstrip_trailing_space(text: Text) -> Text:
365
plain = text.plain
366
stripped = plain.rstrip(
" "
)
367
trim = len(plain) - len(stripped)
368
if
trim:
369
return
text[: len(plain) - trim]
370
return
text
Callers
1
_render_table
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected