Mark 0

Sometimes when I or my colleague download/upload a CSS-document with an FTP program (FileZilla) the document is converted intro a document without line-breaks . I use Notepad++ for viewing.

How could this be happening? And how to solve this?

Example of a piece of CSS without line breaks:

html, body {background:#0C1967 none repeat scroll 0 0;margin:0;padding:0;text-align:center;letter-spacing:0.02em;font-size:0.91em;line-height:18px;}p{letter-spacing:0.03em;}

And so on.

First it was like this:

html, body{ background:#0C1967 none repeat scroll 0 0; margin:0; padding:0; text-align:center; letter-spacing:0.02em; font-size:0.91em; line-height:18px; }

p{ letter-spacing:0.03em; }

6 answers

1
point

Possibly you're downloading from an OS that uses \n as line breaks, and your editor assumes \r\n for line breaks..

Answered over 6 years ago by Brendan Long
0
points

Are you uploading in ASCII mode as opposed to Binary? ASCII mode might mean the carriage returns get stripped out, which sounds like the issue you're experiencing.

Answered over 6 years ago by Tony Crockford
Mark 0
0
points

I tried to test that, but either way it went ok. Most of the time there are Joomla Template CSS files, maybe it's Joomla who is to blame?

Answered over 6 years ago by Mark
Mark 0
0
points

Thnx. That could be true, but it doesn't happen all the time. So that's strange. Couldn't find an option in Notepad++ that assumes the \r\n. Server runs Linux with Pure-FTPd.

I think the problem must be on the server, but what.. driving me nuts.

Answered over 6 years ago by Mark
0
points

Is this plugin installed? http://www.cocut.cn/jstuff/jextension/2214-cssjscompress-v17-plugin.html

Answered over 6 years ago by Tony Crockford
Mark 0
0
points

No this plugin is not installed.

Answered over 6 years ago by Mark