fix: ansi logging (#879)

This commit is contained in:
Anbraten 2022-04-13 22:40:13 +02:00 committed by GitHub
parent 410b0bb217
commit 3064975afd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -67,7 +67,7 @@ export default defineComponent({
const repo = inject<Ref<Repo>>('repo');
const buildProc = useBuildProc();
const ansiConvert = new AnsiConvert();
const ansiConvert = new AnsiConvert({ escapeXML: true });
const logLines = computed(() => buildProc.logs.value?.map((l) => ({ ...l, out: ansiConvert.toHtml(l.out) })));
const proc = computed(() => build.value && findProc(build.value.procs || [], procId.value));