Open JulienGardair opened 4 months ago
I can reproduce this bug.
Edit: when the line break is made in the media library with Enter or Shift+Enter, it's expressed as a newline \n
instead of a <br>
. In the editor, the \n
gets translated to <br>
, but not in the front end. Looks like that needs to be fixed.
Description
Media Library>Image>Caption Line Breaks are reflected in the editor >image > caption but not in the front end.
Step-by-step reproduction instructions
When line breaks are created in Media library>Image>Caption they are reflected in the BLOCK IMAGE caption in the editor but not in the front end where they appear all in one line. If you add the line breaks in the caption, in the editor, then they are reflected in the front end. I am talking about just enter or shift+enter not
Screenshots, screen recording, code snippet
No response
Environment info
WP 6.4.3 Gutenberg 17.9.0
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes