fix multi-line fields display in history

This commit is contained in:
antelle 2019-09-11 23:04:28 +02:00
parent 5d0556debc
commit 07df05304e
2 changed files with 4 additions and 1 deletions

View File

@ -2,7 +2,9 @@ const FieldView = require('./field-view');
const FieldViewReadOnly = FieldView.extend({
renderValue(value) {
return value.isProtected ? new Array(value.textLength + 1).join('•') : _.escape(value);
value = value.isProtected ? new Array(value.textLength + 1).join('•') : _.escape(value);
value = value.replace(/\n/g, '<br/>');
return value;
},
readonly: true

View File

@ -3,6 +3,7 @@ Release notes
##### v1.11.0 (TBD)
`+` #1226: 7-digit Authy OTP support
`-` fix #764: multiple attachments display
`-` fix multi-line fields display in history
##### v1.10.0 (2019-09-09)
`+` macOS Dark theme