mirror of https://github.com/rusefi/rusefi-1.git
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:
parent
a4dfdb3165
commit
2f4a3b0646
Binary file not shown.
|
@ -75,7 +75,7 @@ public class DataLogConsumer implements ConfigurationConsumer {
|
||||||
@NotNull
|
@NotNull
|
||||||
public static String getComment(String prefix, ConfigField configField, VariableRegistry variableRegistry) {
|
public static String getComment(String prefix, ConfigField configField, VariableRegistry variableRegistry) {
|
||||||
String comment = variableRegistry.applyVariables(configField.getComment());
|
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] : "";
|
comment = (comments.length > 0) ? comments[0] : "";
|
||||||
|
|
||||||
if (comment.isEmpty())
|
if (comment.isEmpty())
|
||||||
|
|
|
@ -131,7 +131,7 @@ public class OutputsTest {
|
||||||
state.readBufferedReader(test, (dataLogConsumer));
|
state.readBufferedReader(test, (dataLogConsumer));
|
||||||
assertEquals(
|
assertEquals(
|
||||||
"entry = baseFuel, \"hello\", int, \"%d\"\n" +
|
"entry = baseFuel, \"hello\", int, \"%d\"\n" +
|
||||||
"entry = baseFuel2, \"line1, int, \"%d\"\n"
|
"entry = baseFuel2, \"line1\", int, \"%d\"\n"
|
||||||
, dataLogConsumer.getContent());
|
, dataLogConsumer.getContent());
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,13 +1,11 @@
|
||||||
package com.rusefi.test.newParse;
|
package com.rusefi.test.newParse;
|
||||||
|
|
||||||
import com.rusefi.RusefiParseErrorStrategy;
|
|
||||||
import com.rusefi.newparse.ParseState;
|
import com.rusefi.newparse.ParseState;
|
||||||
import com.rusefi.newparse.parsing.*;
|
import com.rusefi.newparse.parsing.*;
|
||||||
import org.junit.Assert;
|
import org.junit.Assert;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.lang.reflect.Array;
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import static com.rusefi.test.newParse.NewParseHelper.parse;
|
import static com.rusefi.test.newParse.NewParseHelper.parse;
|
||||||
|
|
Loading…
Reference in New Issue