WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #19855, comment 12


Ignore:
Timestamp:
03/13/12 23:30:54 (2 years ago)
Author:
azaozz
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #19855, comment 12

    initial v1  
    1111> to ensure that all `<pre>` tags have sufficient whitespace to be processed normally. 
    1212 
    13 Yes, the <pre> is a block tag so when typing in the HTML editor it has to have a line break before opening and after closing. That's how it comes out of the Visual editor too. There are more edge cases with other block tags similar to this one, perhaps they can be fixed all together. 
     13Yes, <pre> is a block tag so when typing in the HTML editor it has to have a line break before opening and after closing. That's how it comes out of the Visual editor too. There are more edge cases with other block tags similar to this one, perhaps they can be fixed all together. 
    1414 
    1515On the other hand when using the HTML editor it assumes the user is aware that block tags have to be treated as blocks of text, i.e. "\n\n" before the opening tag and after the closing tag. That's the whole point of the HTML editor: it lets you use HTML code but still has an easy to read, "natural" layout.