Incorrect font displayed in Verse and Preformatted blocks when opening a post #41404
Labels
[Block] Preformatted
Affects the Preformatted Block - used for showing preformatted text
[Block] Verse
Affects the Verse block
Mobile App - i.e. Android or iOS
Native mobile impl of the block editor. (Note: used in scripts, ping mobile folks to change)
[Type] Bug
An existing feature does not function as intended
Description
Verse and Preformatted blocks render their content using the
pre
HTML tag, which should display the text with a fixed-width font (i.e. different from the rest of text blocks). This is the case when adding and editing these blocks, however, after saving and re-opening a post on Android, they show the regular font instead. The correct font is only applied after modifying the content of those blocks by adding a new line.NOTE: As outlined in this comment, a variation of this issue can be also reproduced on iOS.
Step-by-step reproduction instructions
Expected behaviour
The Verse and Preformatted blocks should always display the text with a different font than the rest of the text blocks (i.e. a fixed-width font).
Actual behaviour
The Verse and Preformatted blocks display the text with the regular font when opening a post/page that already contains those blocks.
Screenshots or screen recording (optional)
Font changes after modifying the blocks:
android-text-blocks.mp4
WordPress information
Device information
19.8.1
The text was updated successfully, but these errors were encountered: