Preformatted block: add line-height control option #34127
Labels
[Block] Preformatted
Affects the Preformatted Block - used for showing preformatted text
Needs Dev
Ready for, and needs developer efforts
[Type] Enhancement
A suggestion for improvement.
What problem does this address?
As @noisysocks noted on Trac ticket 48402:
With default
pre
element styles in the (Twenty Twenty) theme, "the line height in a Preformatted block is so large that it renders the block impractical for things such as ASCII art and diagrams."Any theme can specify a large line-height, so having an option to reduce that on preformatted blocks would help. Then any adjustments for ASCII art do not affect other
pre
blocks that benefit from a larger line-height, such as Verse and Code.Screenshot from the Trac ticket:

What is your proposed solution?
The Preformatted block could have the same line-height control currently available for Paragraph blocks (when opted in).
The text was updated successfully, but these errors were encountered: