diff options
Diffstat (limited to 'std/encoding/_yaml/mark.ts')
-rw-r--r-- | std/encoding/_yaml/mark.ts | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/std/encoding/_yaml/mark.ts b/std/encoding/_yaml/mark.ts index 44cf175a0..35e986cce 100644 --- a/std/encoding/_yaml/mark.ts +++ b/std/encoding/_yaml/mark.ts @@ -11,7 +11,7 @@ export class Mark { public buffer: string, public position: number, public line: number, - public column: number + public column: number, ) {} public getSnippet(indent = 4, maxLength = 75): string | null { @@ -48,10 +48,12 @@ export class Mark { } const snippet = this.buffer.slice(start, end); - return `${repeat(" ", indent)}${head}${snippet}${tail}\n${repeat( - " ", - indent + this.position - start + head.length - )}^`; + return `${repeat(" ", indent)}${head}${snippet}${tail}\n${ + repeat( + " ", + indent + this.position - start + head.length, + ) + }^`; } public toString(compact?: boolean): string { |