Lots of XDF files have lost line breaks.

Report bugs found in TunerPro. Please be sure to include as much info as possible, including system specs, OS, repro steps and TunerPro version number.

Moderators: Mangus, robertisaar, dex

Post Reply
Turbosport
Posts: 48
Joined: Mon Jun 26, 2006 10:32 am

Lots of XDF files have lost line breaks.

Post by Turbosport »

Looks like a lot of our xdf files have been uploaded without a text/ascii mode enabled on the ftp client and so have lost their line breaks, for instance:

This one is fine:
http://www.tunerpro.net/download/bindef ... oft529.xdf


this one has lost its line breaks

http://www.tunerpro.net/download/bindef ... D1_ABA.xdf

about 30% of all files are the same by the looks of it.
User avatar
Mangus
TunerPro Author
Posts: 1918
Joined: Wed Mar 19, 2003 1:49 pm

Post by Mangus »

I'm seeing line breaks (/r/l) in those files just fine.
***************************************
TunerPro Author
1989 Trans Am
Turbosport
Posts: 48
Joined: Mon Jun 26, 2006 10:32 am

Post by Turbosport »

Not in chrome on both Windows 10 or MAC ??

Here is what I get in page source, so the files are in a different format:



Image


Image
User avatar
Mangus
TunerPro Author
Posts: 1918
Joined: Wed Mar 19, 2003 1:49 pm

Post by Mangus »

Those screenshots look fine to me, clearly showing that lines are broken. Also, view them in your favorite hex editor and note that they clearly have line breaks.
***************************************
TunerPro Author
1989 Trans Am
Turbosport
Posts: 48
Joined: Mon Jun 26, 2006 10:32 am

Post by Turbosport »

Mangus wrote:Those screenshots look fine to me, clearly showing that lines are broken. Also, view them in your favorite hex editor and note that they clearly have line breaks.
Sorry they are not screen shots they are page source screen shots hold on.
Turbosport
Posts: 48
Joined: Mon Jun 26, 2006 10:32 am

Post by Turbosport »

This is a screen shot of the link clicked directly -

By the way a guy I was helping with an xdf spotted this, I just thought I woudl follow it up so its not just me ;)

Image
User avatar
Mangus
TunerPro Author
Posts: 1918
Joined: Wed Mar 19, 2003 1:49 pm

Post by Mangus »

Open them in a hex editor. Search for 0x0d 0x0a (newline and carriage return characters). Note that they exist.

Do the files fail to open in TunerPro?
***************************************
TunerPro Author
1989 Trans Am
Turbosport
Posts: 48
Joined: Mon Jun 26, 2006 10:32 am

Post by Turbosport »

and why are my image tags not working ?
User avatar
Mangus
TunerPro Author
Posts: 1918
Joined: Wed Mar 19, 2003 1:49 pm

Post by Mangus »

Turbosport wrote:This is a screen shot of the link clicked directly -

By the way a guy I was helping with an xdf spotted this, I just thought I woudl follow it up so its not just me ;)

Image
You're trying to view XML in a web browser. HTML is XML.

Don't do that. Open them in notepad or a plain text editor if you want to see/edit the plaintext.
***************************************
TunerPro Author
1989 Trans Am
Turbosport
Posts: 48
Joined: Mon Jun 26, 2006 10:32 am

Post by Turbosport »

I have always just clicked the link and copied the text into a text file with an xdf extension.

Works on some now not others, so some are formatted differently.

Doesn't everyone just click the link and copy ?
User avatar
Mangus
TunerPro Author
Posts: 1918
Joined: Wed Mar 19, 2003 1:49 pm

Post by Mangus »

That's a bad practice on your part. The files are fine, as you can prove yourself by opening them in a plain text editor.

Right-click, save link as.
***************************************
TunerPro Author
1989 Trans Am
Turbosport
Posts: 48
Joined: Mon Jun 26, 2006 10:32 am

Post by Turbosport »

Mangus wrote:That's a bad practice on your part. The files are fine, as you can prove yourself by opening them in a plain text editor.

Right-click, save link as.
ok I'll update my help files, would be nice if they all behaved the same though.
User avatar
Mangus
TunerPro Author
Posts: 1918
Joined: Wed Mar 19, 2003 1:49 pm

Post by Mangus »

There are two different XDF formats - old and new. New is XML. Don't expect to view raw XML in your browser without the browser trying to render it like HTML (like you see in your third screenshot). Old format will probably work just fine in your browser (like your first screenshot). That's probably the difference you're seeing.

Thanks, though.
***************************************
TunerPro Author
1989 Trans Am
Post Reply