fixup: 修复补丁脚本把Kotlin换行转义展开成真实换行导致的两处断字符串(langdrift/seg-drift sample日志),编译错误1968:71
This commit is contained in:
parent
4ce45cb4b9
commit
f4501c8812
|
|
@ -1965,8 +1965,7 @@ class MainActivity : AppCompatActivity() {
|
||||||
Log.i(TAG, "MISS sid=" + s2.id + " reason=seg-echo")
|
Log.i(TAG, "MISS sid=" + s2.id + " reason=seg-echo")
|
||||||
!targetLangOk(tr) ->
|
!targetLangOk(tr) ->
|
||||||
Log.i(TAG, "MISS sid=" + s2.id + " reason=seg-drift" +
|
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) {
|
else -> if (s2.trans != tr) {
|
||||||
s2.trans = tr
|
s2.trans = tr
|
||||||
s2.line?.let { touched.add(it) }
|
s2.line?.let { touched.add(it) }
|
||||||
|
|
@ -2076,8 +2075,7 @@ class MainActivity : AppCompatActivity() {
|
||||||
!targetLangOk(tr) -> {
|
!targetLangOk(tr) -> {
|
||||||
val att = bumpAttempt(sid)
|
val att = bumpAttempt(sid)
|
||||||
Log.i(TAG, "MISS sid=" + sid + " reason=langdrift attempt=" +
|
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))
|
if (att <= 1) drift.add(Pair(sid, src))
|
||||||
}
|
}
|
||||||
else -> good[sid] = tr
|
else -> good[sid] = tr
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue