Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/mail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Steinmetz <richard@steinmetz.cloud>2022-09-13 12:06:25 +0300
committerRichard Steinmetz <richard@steinmetz.cloud>2022-09-13 12:06:25 +0300
commit9f3cadba0e9e321985af440916cea1a490f52aa5 (patch)
tree8be4be0be19c558544cf3818f2b85b11ec80f420
parent4d3b2c5b89b38ddaa1e2bb66437569253393d7b0 (diff)
Fix missing line breaks when parsing message from sieve script
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
-rw-r--r--src/components/OutOfOfficeForm.vue4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/OutOfOfficeForm.vue b/src/components/OutOfOfficeForm.vue
index a277860f6..3647fa07e 100644
--- a/src/components/OutOfOfficeForm.vue
+++ b/src/components/OutOfOfficeForm.vue
@@ -113,7 +113,7 @@ import TextEditor from './TextEditor'
import CheckIcon from 'vue-material-design-icons/Check'
import { buildOutOfOfficeSieveScript, parseOutOfOfficeState } from '../util/outOfOffice'
import logger from '../logger'
-import { html, toPlain } from '../util/text'
+import { html, plain, toHtml, toPlain } from '../util/text'
export default {
name: 'OutOfOfficeForm',
@@ -201,7 +201,7 @@ export default {
this.firstDay = state.start ?? new Date()
this.lastDay = state.end ?? null
this.subject = state.subject ?? ''
- this.message = state.message ?? ''
+ this.message = toHtml(plain(state.message)).value ?? ''
},
},
enableLastDay(enableLastDay) {