[wp-trac] [WordPress Trac] #43172: Output Buffering and <pre>

WordPress Trac noreply at wordpress.org
Mon Jan 29 15:06:39 UTC 2018


#43172: Output Buffering and <pre>
-------------------------------------+------------------------------
 Reporter:  briansahagun             |       Owner:
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  Awaiting Review
Component:  General                  |     Version:  4.9.2
 Severity:  normal                   |  Resolution:
 Keywords:  reporter-feedback close  |     Focuses:
-------------------------------------+------------------------------

Comment (by briansahagun):

 Hi @dd32, I copy and pasted a CSS code inside the <pre> tag.

 In the Visual/Text editor, everything seems ok. But when I publish it and
 view it using my theme (wherein I run the_content() inside ob_start() ),
 the formatting is removed.

 Please see images:
 https://www.flickr.com/gp/briansahagun/NWX0J1
 https://www.flickr.com/gp/briansahagun/798R62

 But when I switch to Twentyseventeen theme, the formatting is preserved.

 I already tested putting the_content() outside OB and it works fine–so I
 thought it must be the OB.

 Thanks.

 Replying to [comment:1 dd32]:
 > Hi @briansahagun,
 >
 > Can you please provide an example of what you expected, and what you got
 instead?
 >
 > Assuming the code given is running as-is, there's nothing in WordPress
 that I'm aware of that could be modifying it's behaviour, and it's likely
 a quirk of the processing code.

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


More information about the wp-trac mailing list