Skip to content

Colored highlighter removes spaces if spaces are in the first 3 tokens #414

@schrauger

Description

@schrauger

With the default highlighter mode, which highlights the first 3 tokens/characters, the highlighting function causes spaces to be removed if any of the first three characters is a space.

Input:
{A Section Here}

Expected Output:
"A Section Here" or "A Section Here"

Actual Output:
"ASection Here"

Most headers are more than 3 characters, and the non-highlighted portions keep the spaces, so this problem doesn't appear to affect the average resume created.

If you change the highlight function to increase the number of characters highlighted, this become a more noticeable problem. However, even with 3 characters, I ran into this issue when I wanted to start a section with a single character or two character word, followed by a space, and another word. The coloring functionality removes the space.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ⚠️ bugCategorize bug reports.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions