Skip to content

leading whitespaces in "prefix" #46

@ldm1417

Description

@ldm1417

Hi there,

How is it possible to use whitespaces in "prefix"?

E.g. this example:
"codemap.json": [
{

  "pattern": "^.*//~{1}\\s(.+)", // level-1
  "clear": "//~",
  "sort": "Alpha",  
  "prefix": " ",      
  "icon": "level-1",
},

]

The following "prefexes" give the same result (none whitespace appears in the code mapping):
"prefix": "", "prefix": " ", "prefix": " ",

In order to make the above example work, any character should be placed before the leading whitespace in the "prefex".
E.g.:
"prefix": "- ", "prefix": "x ", "prefix": "- ",

So, how to use leading whitespaces in the "prefix" (without a need to add a character before these leading whitespaces)?

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions