tamino-martinius / node-ts-dedent

TypeScript package which smartly trims and strips indentation from multi-line strings
MIT License
159 stars 8 forks source link

[bug] if there is no indent output is wrong #4

Closed brandonkal closed 3 years ago

brandonkal commented 4 years ago

input:

var tsDedent = require("ts-dedent").default

const text = `
clone:
      disable: true
`
console.log(tsDedent(text))

Paste above on runkit to test https://npm.runkit.com/ts-dedent

output:

clone:
disable: true
tamino-martinius commented 4 years ago

Thanks for the report. I was able to reproduce this and i will try to solve this issue

tamino-martinius commented 3 years ago

Will be fixed with the next major release