Project

General

Profile

Actions

Bug #89611

closed

Linebreaks in image description / caption not working

Added by Matthias Krappitz about 5 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Start date:
2019-11-07
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
9
PHP Version:
7.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

In TYPO3 9.5.11 when using EXT:fluid_styled_content and the "text with image" or "text with media" content elements when entering a multiline image description in the FAL image, the line breaks are not being rendered with br tags but just as normal text line breaks, so they have no visual effect in the html output in frontend.
IMHO in the following three partials there needs to be a f:format.nl2br viewhelper around the {file.description}:
EXT:fluid_styled_content/Resources/Private/Partials/Media/Type/Audio.html
EXT:fluid_styled_content/Resources/Private/Partials/Media/Type/Image.html
EXT:fluid_styled_content/Resources/Private/Partials/Media/Type/Video.html

Actions

Also available in: Atom PDF