fix(parser): str_join separator '' not ' ' — CSS selectors were emitting spaces #45
Reference in New Issue
Block a user
Delete Branch "fix/css-str-join-separator"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Root cause: parse_raw_text_content() and parse_html_text_tokens() were joining token parts with a space separator. This caused CSS class selectors like .founding-badge to emit as . founding - badge, and any multi-token selector or value to break.
Fix: str_join(parts, " ") → str_join(parts, "") in both functions (parser.el:335 and parser.el:365).
This is a two-line change. No logic changes, no behavior changes outside of whitespace handling in raw text content and HTML text nodes.