This Question is Resolved.

If you have a similiar issue that this thread does not address, click the button below to open a new related support topic.

 
 
From 1.6.4 to 1.6.6 broke my PRE blocks
Posted: 21 November 2008 08:36 AM   [ Ignore ]  
Summer Student
Avatar
Total Posts:  17
Joined  06-25-2003

I have a wierd rendering bug in my PRE blocks.

I just updated to 1.6.6 last night from 1.6.4. I have a PRE block that has some AD&D stats from a text file,

(the code blocks do not like my lead space in this example)

|CHA|CON|DEX|WIS|INT|STR(100)|HP |
--------------------+---+---+---+---+---+--------+---|
AKABAR BEL AKAS     | 14| 13| 12| 13| 15| 11     | 15|

Under 1.6.4 it displayed correctly, under 1.6.6 it wrapped the dashed line onto the first line and looks like this;


|CHA|CON|DEX|WIS|INT|STR(100)|HP |--------------------+---+---+---+---+---+--------+---|
AKABAR BEL AKAS     | 14| 13| 12| 13| 15| 11     | 15|

you can see it on my site at here

The odd thing, it only wrapped that first line, but it is the only line in my data that starts with a dash.

Profile
 
 
Posted: 21 November 2008 10:34 AM   [ Ignore ]   [ # 1 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  23744
Joined  05-20-2002

I confirm using the the html pre tag- however the pm code tag [ pre ] works as expected.  However, that is a difference from the 1.6.4 branch, so let me take a closer look.

(Allowed html set to ‘all’ and ‘xhtml’ formatting.)

 Signature 

AKA rob1

Help Request TipsPro Network

Profile
 
 
Posted: 25 November 2008 07:41 PM   [ Ignore ]   [ # 2 ]  
Summer Student
Avatar
Total Posts:  17
Joined  06-25-2003

I think part of the issue is also that it is interpreting double dashes—into some smart html emdash or something.

I _REALLY_ dislike auto-translating ANYTHING inside pre blocks apart from lt/gt’s. grrr.

Its also corrupting my double quotes into “and”...

I need to somehow stop EE from doing anything to what is inside a PRE block.. which afterall stands for “pre-formatted”..

I re-saved my entry as formatting “none” from xhtml and it didn’t “smartly” auto-interpret my double dashes, quotes etc.

This also makes my pre blocks show up exactly as they should.

Profile
 
 
Posted: 25 November 2008 09:10 PM   [ Ignore ]   [ # 3 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  23744
Joined  05-20-2002

Right- it’s parsing inside the pre and code tags (unless you use pm code).  It shouldn’t touch it in either.  This one is about wrapped up, but still tweaking the handling of html comments, which are also getting parsed.  So need to get that smoothed out.  Hopefully I’ll report back shortly with a wrap up.

(Note- turning the formatting to ‘none’ means EE doesn’t alter the content at all (aside from allowed html/security issues.)

 Signature 

AKA rob1

Help Request TipsPro Network

Profile
 
 
Posted: 11 December 2008 08:59 AM   [ Ignore ]   [ # 4 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  23744
Joined  05-20-2002

That was a longer wait than I’d prefer!  The fix is now in for the next build, and I’m going to drop you an email with a few details on it.  Thanks for your patience on this one!

 Signature 

AKA rob1

Help Request TipsPro Network

Profile
 
 
 

This Question is Resolved.

If you have a similiar issue that this thread does not address, click the button below to open a new related support topic.

 
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 66391 Total Logged-in Users: 44
Total Topics: 84715 Total Anonymous Users: 23
Total Replies: 454696 Total Guests: 197
Total Posts: 539411    
Members ( View Memberlist )