feat(editor): Harmonize rendering of new-lines in RunData (#9614)

Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
Co-authored-by: Giulio Andreini <g.andreini@gmail.com>
This commit is contained in:
oleg
2024-06-10 15:24:17 +02:00
committed by GitHub
parent 22bdb0568e
commit bc3dcf706f
9 changed files with 311 additions and 68 deletions

View File

@@ -388,7 +388,7 @@ export default defineComponent({
return this.$locale.baseText('runData.emptyString');
}
if (typeof value === 'string') {
return value.replaceAll('\n', '\\n');
return value;
}
if (Array.isArray(value) && value.length === 0) {
return this.$locale.baseText('runData.emptyArray');