aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormakamys <makamys@outlook.com>2023-10-20 23:16:25 +0200
committermakamys <makamys@outlook.com>2023-10-20 23:16:25 +0200
commit4c3b249745992e1508458a99208234420289d013 (patch)
treeb882af7489b954ec9d36b6a9107dc32ac0e43c45 /src
parentd65cb06fdcaceb2e3b40d53bc5fd8686a2f67b0e (diff)
downloadNeodymium-4c3b249745992e1508458a99208234420289d013.tar.gz
Neodymium-4c3b249745992e1508458a99208234420289d013.tar.bz2
Neodymium-4c3b249745992e1508458a99208234420289d013.zip
Fix shader line ending normalization being broken (fixes #28)
Diffstat (limited to 'src')
-rw-r--r--src/main/java/makamys/neodymium/util/Preprocessor.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/makamys/neodymium/util/Preprocessor.java b/src/main/java/makamys/neodymium/util/Preprocessor.java
index 8ee9229..d2fb0ba 100644
--- a/src/main/java/makamys/neodymium/util/Preprocessor.java
+++ b/src/main/java/makamys/neodymium/util/Preprocessor.java
@@ -5,7 +5,7 @@ import java.util.Set;
public class Preprocessor {
public static String preprocess(String text, Set<String> defines) {
- String[] lines = text.replaceAll("\\r\\n", "\\n").split("\\n");
+ String[] lines = text.replaceAll("\\r\\n", "\n").split("\\n");
IfElseBlockStatus ifElseBlockStatus = IfElseBlockStatus.NONE;
boolean ifElseConditionMet = false;