Fix indentation mistake
This commit is contained in:
parent
72b22b99ea
commit
21075b81a6
1 changed files with 2 additions and 1 deletions
|
@ -214,7 +214,8 @@ function doc_one(def: Def, i: number): string[] {
|
||||||
if (is_doctest(s)) {
|
if (is_doctest(s)) {
|
||||||
out.push(indent + '```typescript')
|
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)) {
|
if (is_doctest(s)) {
|
||||||
out.push(indent + '```')
|
out.push(indent + '```')
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue