Skip to content

Commit dbd4851

Browse files
author
Sven Ulrich
committed
Merge branch 'master' into feature/append-line
2 parents baed971 + a879d70 commit dbd4851

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

dist/index.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ export class String {
241241
break;
242242
}
243243
}
244-
244+
245245
return temp;
246246
}
247247
}
@@ -258,9 +258,15 @@ export class StringBuilder {
258258
public Append(value: string) {
259259
this.Values.push(value);
260260
}
261+
public AppendLine(value: string) {
262+
this.Values.push('\n' + value);
263+
}
261264
public AppendFormat(format: string, ...args: any[]) {
262265
this.Values.push(String.Format(format, ...args));
263266
}
267+
public AppendLineFormat(format: string, ...args: any[]) {
268+
this.Values.push('\n' + String.Format(format, ...args));
269+
}
264270
public Clear() {
265271
this.Values = [];
266272
}

0 commit comments

Comments
 (0)