fix: 修复out-height的 bug

This commit is contained in:
yarnom 2025-11-14 12:11:27 +08:00
parent 9e53d85594
commit a409074563

View File

@ -168,11 +168,11 @@ public class RtkrcvManager {
private String replaceLine(String content, String key, String value){
String[] lines = content.split("\n");
StringBuilder sb = new StringBuilder();
String prefix = key + " =";
for(String line : lines){
if(line.trim().startsWith(key+" =") || line.trim().startsWith(key+" =") || line.trim().startsWith(key+" =")){
String t = line.trim();
if(t.startsWith(key)){
sb.append(key).append(" =").append(value).append("\n");
}else{
} else {
sb.append(line).append("\n");
}
}