dmnd/dedent

Allow first line to be blank

moll opened this issue · 4 comments

moll commented

E.g.:

      console.log(dedent`
        if foo
          br
          hr
      `)

Cheers

dmnd commented

What output are you expecting here?

moll commented

Hey,

What output are you expecting here?

if foo
  br
  hr
dmnd commented

I'm pretty sure that works already. Isn't it the same as this test case?

Going to close the issue, but we can reopen if there really is a bug here.

moll commented

Maybe you're right or maybe I was actually using multiple blank lines, but prematurely generalized that bug report to "first blank line". Thanks anyways. I'll come back should I notice it not working.