mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-02-06 01:08:21 +01:00
Fix line break on home event's card
This commit is contained in:
parent
fb7e76aa4f
commit
8713354d04
@ -1,5 +1,7 @@
|
|||||||
# Changelog Fab-manager
|
# Changelog Fab-manager
|
||||||
|
|
||||||
|
- Fix line break on home events' cards
|
||||||
|
|
||||||
## v5.3.3 2022 February 08
|
## v5.3.3 2022 February 08
|
||||||
|
|
||||||
- Updated german translations
|
- Updated german translations
|
||||||
|
@ -157,6 +157,8 @@ Application.Filters.filter('breakFilter', [function () {
|
|||||||
Application.Filters.filter('simpleText', [function () {
|
Application.Filters.filter('simpleText', [function () {
|
||||||
return function (text) {
|
return function (text) {
|
||||||
if (text != null) {
|
if (text != null) {
|
||||||
|
// add a line break after specific closing tags
|
||||||
|
text = text.replace(/(<\/p>|<\/h4>|<\/h5>|<\/h6>|<\/pre>|<\/blockquote>)/g, '\n');
|
||||||
text = text.replace(/<br\s*\/?>/g, '\n');
|
text = text.replace(/<br\s*\/?>/g, '\n');
|
||||||
return text.replace(/<\/?\w+[^>]*>/g, '');
|
return text.replace(/<\/?\w+[^>]*>/g, '');
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user