debug is set to idle mode, but none of the debug fields show anything #4335

code generator fix with multiline and quotes
This commit is contained in:
rusefillc 2022-07-07 23:21:50 -04:00
parent a4dfdb3165
commit 2f4a3b0646
4 changed files with 2 additions and 4 deletions

Binary file not shown.

View File

@ -75,7 +75,7 @@ public class DataLogConsumer implements ConfigurationConsumer {
@NotNull
public static String getComment(String prefix, ConfigField configField, VariableRegistry variableRegistry) {
String comment = variableRegistry.applyVariables(configField.getComment());
String[] comments = comment == null ? new String[0] : comment.split("\\\\n");
String[] comments = comment == null ? new String[0] : unquote(comment).split("\\\\n");
comment = (comments.length > 0) ? comments[0] : "";
if (comment.isEmpty())

View File

@ -131,7 +131,7 @@ public class OutputsTest {
state.readBufferedReader(test, (dataLogConsumer));
assertEquals(
"entry = baseFuel, \"hello\", int, \"%d\"\n" +
"entry = baseFuel2, \"line1, int, \"%d\"\n"
"entry = baseFuel2, \"line1\", int, \"%d\"\n"
, dataLogConsumer.getContent());
}

View File

@ -1,13 +1,11 @@
package com.rusefi.test.newParse;
import com.rusefi.RusefiParseErrorStrategy;
import com.rusefi.newparse.ParseState;
import com.rusefi.newparse.parsing.*;
import org.junit.Assert;
import org.junit.Test;
import java.io.IOException;
import java.lang.reflect.Array;
import java.util.List;
import static com.rusefi.test.newParse.NewParseHelper.parse;