-
Notifications
You must be signed in to change notification settings - Fork 43
Closed
Labels
status: accepting prsPlease, send a pull request to resolve this!Please, send a pull request to resolve this!type: featureNew enhancement or requestNew enhancement or request
Description
Hijacked by @JoshuaKGoldberg on September 4th, 2023: see #12 (comment). Now accepting PRs for a dedent({ recursive: true }) option.
const a = dedent`
hello
world
`;
const b = dedent`
foo.
${a}
bar.
`;results in
foo.
hello
world
bar.
instead of
foo.
hello
world
bar.
This is unfortunate because it would be nice to compose dedented strings.
If you decide to fix this, any test cases should also check that inlined dedents make sense:
const weird = dedent`
foo.
${things.map(x => dedent`
hello
world
`).join('\n')}
bar.
`;Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
status: accepting prsPlease, send a pull request to resolve this!Please, send a pull request to resolve this!type: featureNew enhancement or requestNew enhancement or request