Fix indentation mistake

This commit is contained in:
Dan Rosén 2017-11-06 13:01:21 +01:00
parent 72b22b99ea
commit 21075b81a6

View file

@ -214,7 +214,8 @@ function doc_one(def: Def, i: number): string[] {
if (is_doctest(s)) {
out.push(indent + '```typescript')
}
out.push(indent + s.trim().split('\n').join('\n' + indent))
const lines = s.split('\n')
lines.forEach(line => out.push(indent + line))
if (is_doctest(s)) {
out.push(indent + '```')
}