summaryrefslogtreecommitdiff
path: root/std/encoding/_yaml/mark.ts
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2020-07-14 15:24:17 -0400
committerGitHub <noreply@github.com>2020-07-14 15:24:17 -0400
commitcde4dbb35132848ffece59ef9cfaccff32347124 (patch)
treecc7830968c6decde704c8cfb83c9185193dc698f /std/encoding/_yaml/mark.ts
parent9eca71caa1674c31f9cc5d4e86c03f10b59e0a00 (diff)
Use dprint for internal formatting (#6682)
Diffstat (limited to 'std/encoding/_yaml/mark.ts')
-rw-r--r--std/encoding/_yaml/mark.ts12
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 {