fix: pre-wrap result to proper display

This commit is contained in:
ShareVB 2024-09-21 10:22:09 +02:00
parent a50bfd5130
commit f0ef42aade

View file

@ -187,7 +187,7 @@ const { copy } = useCopy({ source: highlightedText });
</n-form-item> </n-form-item>
</div> </div>
<c-card v-if="highlightedText" mt-60px max-w-600px flex items-center gap-5px font-mono> <c-card v-if="highlightedText" mt-60px max-w-600px flex items-center gap-5px font-mono>
<!-- //NOSONAR --><div flex-1 break-anywhere text-wrap style="white-space: pre" v-html="highlightedText" /> <!-- //NOSONAR --><div flex-1 break-anywhere text-wrap style="white-space: pre-wrap" v-html="highlightedText" />
<c-button @click="copy()"> <c-button @click="copy()">
<icon-mdi:content-copy /> <icon-mdi:content-copy />