mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-01-29 18:52:22 +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
|
||||
|
||||
- Fix line break on home events' cards
|
||||
|
||||
## v5.3.3 2022 February 08
|
||||
|
||||
- Updated german translations
|
||||
|
@ -157,6 +157,8 @@ Application.Filters.filter('breakFilter', [function () {
|
||||
Application.Filters.filter('simpleText', [function () {
|
||||
return function (text) {
|
||||
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');
|
||||
return text.replace(/<\/?\w+[^>]*>/g, '');
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user