[wp-trac] [WordPress Trac] #48402: Preformatted blocks do not remove styled line spacing

WordPress Trac noreply at wordpress.org
Tue Apr 18 06:59:20 UTC 2023


#48402: Preformatted blocks do not remove styled line spacing
---------------------------+------------------------------
 Reporter:  trickywidget   |       Owner:  (none)
     Type:  defect (bug)   |      Status:  closed
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  Bundled Theme  |     Version:  5.3
 Severity:  normal         |  Resolution:  fixed
 Keywords:  2nd-opinion    |     Focuses:
---------------------------+------------------------------
Changes (by poena):

 * status:  new => closed
 * resolution:   => fixed


Comment:

 The preformatted block now has a line height option in the Typography
 panel,
 if the theme opts in ( {{{add_theme_support( 'custom-line-height' );}}}
 for classic themes, theme.json for block themes.).

 This value is inline,
 {{{
 <pre class="wp-block-preformatted" style="line-height:2.7;">
 }}}
 so when the value is updated, it will override the theme's default line-
 height correctly in the editor and the front.

 I will close this ticket as fixed. Kindly comment on or reopen the ticket
 if needed.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/48402#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list