diff --git a/stdiet-ui/src/components/TextInfo/index.vue b/stdiet-ui/src/components/TextInfo/index.vue index 09654e7c6..5707918c5 100644 --- a/stdiet-ui/src/components/TextInfo/index.vue +++ b/stdiet-ui/src/components/TextInfo/index.vue @@ -21,10 +21,15 @@ export default { if ( this.value && typeof this.value === "string" && - this.value.includes("
") + (this.value.includes("
") || this.value.includes("\n")) ) { this.newLine = true; - return this.value.split("
"); + if (this.value.includes("
")) { + return this.value.split("
"); + } else if (this.value.includes("\n")) { + return this.value.split("\n"); + } + return this.value; } return this.value; },