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

WordPress Trac noreply at wordpress.org
Thu Nov 5 23:52:52 UTC 2020


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

 * keywords:  reporter-feedback => 2nd-opinion
 * component:  Editor => Bundled Theme


Comment:

 `<pre>` doesn't denote text that is excluded from external formatting,
 just text that has a "structure represented by typographic content rather
 than by elements".

 In other words, structure such as newlines and whitespace are determined
 using literal characters such as `\n` and ` ` rather than by elements such
 as `<br>`. CSS can still be used to style properties such as `line-
 height`, `font-weight`, `letter-spacing`, etc.

 I do agree, however, that when using the default 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. This `line-height`
 is set by Twenty Twenty's `pre` styling.

 I'd like us to consider decreasing the default `pre` line height, so am
 moving this ticket to Bundled Theme.

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


More information about the wp-trac mailing list