fixup: 修复补丁脚本把Kotlin换行转义展开成真实换行导致的两处断字符串(langdrift/seg-drift sample日志),编译错误1968:71

This commit is contained in:
liwenhao2 2026-09-15 11:24:11 +08:00
parent 4ce45cb4b9
commit f4501c8812
1 changed files with 2 additions and 4 deletions

View File

@ -1965,8 +1965,7 @@ class MainActivity : AppCompatActivity() {
Log.i(TAG, "MISS sid=" + s2.id + " reason=seg-echo")
!targetLangOk(tr) ->
Log.i(TAG, "MISS sid=" + s2.id + " reason=seg-drift" +
" sample=" + tr.take(24).replace("
", " "))
" sample=" + tr.take(24).replace("\n", " "))
else -> if (s2.trans != tr) {
s2.trans = tr
s2.line?.let { touched.add(it) }
@ -2076,8 +2075,7 @@ class MainActivity : AppCompatActivity() {
!targetLangOk(tr) -> {
val att = bumpAttempt(sid)
Log.i(TAG, "MISS sid=" + sid + " reason=langdrift attempt=" +
att + " sample=" + tr.take(24).replace("
", " "))
att + " sample=" + tr.take(24).replace("\n", " "))
if (att <= 1) drift.add(Pair(sid, src))
}
else -> good[sid] = tr