diff --git a/app/gui2/src/components/visualizations/TableVisualization.vue b/app/gui2/src/components/visualizations/TableVisualization.vue index 2ac0b79caf..8c4d35b6bd 100644 --- a/app/gui2/src/components/visualizations/TableVisualization.vue +++ b/app/gui2/src/components/visualizations/TableVisualization.vue @@ -218,10 +218,6 @@ function formatText(params: ICellRendererParams) { .replaceAll('&', '&') .replaceAll('<', '<') .replaceAll('>', '>') - .replace( - /https?:\/\/([-()_.!~*';/?:@&=+$,A-Za-z0-9])+/g, - (url: string) => `${url}`, - ) if (textFormatterSelected.value === TextFormatOptions.Off) { return htmlEscaped.replace(/^\s+|\s+$/g, ' ') @@ -245,7 +241,12 @@ function formatText(params: ICellRendererParams) { return `${match.replaceAll(' ', '·')}` }) - const replaceReturns = replaceSpaces.replace( + const replaceLinks = replaceSpaces.replace( + /https?:\/\/([-()_.!~*';/?:@&=+$,A-Za-z0-9])+/g, + (url: string) => `${url}`, + ) + + const replaceReturns = replaceLinks.replace( /\r\n/g, '␍␊
', )