mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-20 15:51:23 +02:00
Theme system refactor (#31)
This commit is contained in:
6
src-web/lib/indent.ts
Normal file
6
src-web/lib/indent.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
export function indent(text: string, space = ' '): string {
|
||||
return text
|
||||
.split('\n')
|
||||
.map((line) => space + line)
|
||||
.join('\n');
|
||||
}
|
||||
Reference in New Issue
Block a user