From ce4e190f8f2b79a930a2b0c68964c08c304c95a0 Mon Sep 17 00:00:00 2001
From: AbdBarho
Date: Sat, 3 Sep 2022 06:59:16 +0200
Subject: [PATCH] Force LF (#24)
---
.editorconfig | 9 +++++++++
.gitattributes | 1 +
.vscode/settings.json | 3 ---
build/info.py | 6 ++----
4 files changed, 12 insertions(+), 7 deletions(-)
create mode 100644 .editorconfig
create mode 100644 .gitattributes
delete mode 100644 .vscode/settings.json
diff --git a/.editorconfig b/.editorconfig
new file mode 100644
index 00000000000..438e1ce2dae
--- /dev/null
+++ b/.editorconfig
@@ -0,0 +1,9 @@
+root = true
+
+[*]
+end_of_line = lf
+indent_style = space
+indent_size = 2
+charset = utf-8
+insert_final_newline = true
+trim_trailing_whitespace = true
diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 00000000000..6313b56c578
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1 @@
+* text=auto eol=lf
diff --git a/.vscode/settings.json b/.vscode/settings.json
deleted file mode 100644
index 7e6882bfa36..00000000000
--- a/.vscode/settings.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "files.eol": "\n"
-}
diff --git a/build/info.py b/build/info.py
index 856d52662a8..a8b418c0336 100644
--- a/build/info.py
+++ b/build/info.py
@@ -9,7 +9,5 @@
Created using stable-diffusion-webui-docker.
For help and advanced usage guides,
-""", 1)\
- .replace('img2img_cfg = gr.Slider(minimum=1.0, maximum=30.0', 'img2img_cfg = gr.Slider(minimum=1.0, maximum=60.0')
-
-)
\ No newline at end of file
+""", 1)
+)