PRE formatting

Permalink
Hi,

it's driving me crazy: I'm trying to insert a "pre" block (a short git diff) into my page, but it seems like redactor is always removing line breaks and just does horrible stuff to it in general. Is there a way to use the "code" style in the way it's meant to be?

Thanks,

Stefan

 
JohntheFish replied on at Permalink Reply
JohntheFish
An HTML block?
seidler replied on at Permalink Reply
What do you mean?

I am referring to normal editing within a "content" block.
seidler replied on at Permalink Reply
Ok, an HTML block is kind of O.K., BUT it un-escapes HTML escapes, so if I have
<pre>
 &lt;tag&gt;
</pre>

it saves fine, but next time I edit the block, it comes out as
<pre>
 <tag>
</pre>

and then when I save it, the content sometimes just is discarded completely.

I guess this is just another thing being added to the LONG list of bugs in 5.7.

Stefan
frz replied on at Permalink Reply
frz
how about making a preformatted text block instead? ;)