diff options
author | Richard Steinmetz <richard@steinmetz.cloud> | 2022-09-13 12:18:57 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-13 12:18:57 +0300 |
commit | a02449007dd5723c5c3414c3f69a4a1f4811552e (patch) | |
tree | 8be4be0be19c558544cf3818f2b85b11ec80f420 | |
parent | 4d3b2c5b89b38ddaa1e2bb66437569253393d7b0 (diff) | |
parent | 9f3cadba0e9e321985af440916cea1a490f52aa5 (diff) |
Merge pull request #7269 from nextcloud/fix/7177/line-breaks-are-lost
Fix missing line breaks when parsing message from sieve script
-rw-r--r-- | src/components/OutOfOfficeForm.vue | 4 |
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) { |