mirror of
https://github.com/lifegpc/msg-tool.git
synced 2026-06-29 07:07:00 +08:00
Compare commits
2 Commits
754d67b3d0
...
d43b8342bc
| Author | SHA1 | Date | |
|---|---|---|---|
| d43b8342bc | |||
| fdb5456926 |
@@ -90,7 +90,7 @@ impl<'a> M3tParser<'a> {
|
||||
})
|
||||
.replace("\\n", "\n")
|
||||
} else {
|
||||
let mut tmp = message.replace("\\n", "\n");
|
||||
let mut tmp = message.to_owned();
|
||||
if let Some(llm) = llm.take() {
|
||||
if tmp == llm {
|
||||
if let Some(mark) = self.llm_mark {
|
||||
@@ -98,7 +98,7 @@ impl<'a> M3tParser<'a> {
|
||||
}
|
||||
}
|
||||
}
|
||||
tmp
|
||||
tmp.replace("\\n", "\n")
|
||||
};
|
||||
if let Some(ori) = ori.take() {
|
||||
map.insert(ori, message);
|
||||
@@ -160,7 +160,7 @@ impl<'a> M3tParser<'a> {
|
||||
})
|
||||
.replace("\\n", "\n")
|
||||
} else {
|
||||
let mut tmp = message.replace("\\n", "\n");
|
||||
let mut tmp = message.to_owned();
|
||||
if let Some(llm) = llm.take() {
|
||||
if tmp == llm {
|
||||
if let Some(mark) = self.llm_mark {
|
||||
@@ -168,7 +168,7 @@ impl<'a> M3tParser<'a> {
|
||||
}
|
||||
}
|
||||
}
|
||||
tmp
|
||||
tmp.replace("\\n", "\n")
|
||||
};
|
||||
messages.push(Message::new(message, name.take()));
|
||||
} else {
|
||||
|
||||
@@ -842,6 +842,7 @@ impl<'a> ImportMes<'a> {
|
||||
}
|
||||
}
|
||||
obj[&self.text_key].set_string(text.replace("\n", "\\n"));
|
||||
return;
|
||||
} else {
|
||||
eprintln!(
|
||||
"Warning: chat message '{}' not found in translation table.",
|
||||
@@ -887,6 +888,7 @@ impl<'a> ImportMes<'a> {
|
||||
}
|
||||
}
|
||||
list[i].set_string(text.replace("\n", "\\n"));
|
||||
return;
|
||||
} else {
|
||||
eprintln!(
|
||||
"Warning: chat message '{}' not found in translation table.",
|
||||
|
||||
Reference in New Issue
Block a user