Dialog message must be pre-wrap to format correctly newline

This commit is contained in:
Cédric Krier committed 2015-09-06 21:19:17 +02:00
1 parent 7e8c4a3903
commit e2f6c5570e
1 file changed
+9 -3
+9 -3
View File
@@ -2543,7 +2543,9 @@
})).append(jQuery('<span/>', {
'class': 'sr-only'
}).append(Sao.i18n.gettext('Message: '))
).append(message));
).append(jQuery('<span/>')
.append(message)
.css('white-space', 'pre-wrap')));
jQuery('<button/>', {
'class': 'btn btn-primary',
'type': 'button'
@@ -2575,7 +2577,9 @@
})).append(jQuery('<span/>', {
'class': 'sr-only'
}).append(Sao.i18n.gettext('Warning: '))
).append(message));
).append(jQuery('<span/>')
.append(message)
.css('white-space', 'pre-wrap')));
jQuery('<button/>', {
'class': 'btn btn-primary',
'type': 'button'
@@ -2644,7 +2648,9 @@
})).append(jQuery('<span/>', {
'class': 'sr-only'
}).append(Sao.i18n.gettext('Confirmation: '))
).append(message));
).append(jQuery('<span/>')
.append(message)
.css('white-space', 'pre-wrap')));
return dialog;
}
});