You are here: Re: Ooeee! What caused source to lose formatting? « HTML « IT news, forums, messages
Re: Ooeee! What caused source to lose formatting?

Posted by dorayme on 11/28/06 01:04

In article
<doraymeRidThis-F6D497.14190819112006@news-vip.optusnet.com.au>,
dorayme <doraymeRidThis@optusnet.com.au> wrote:

> Was configuring a site of mine to understand an include in the
> html
>
....
>
> Fine... in a way... but something has happened to the source
> view, it no longer appears formatted in the sense of line breaks,
> it is all strung together as on one line.
>


Just a followup to this as I have stumbled across a rather weird
fix:

I was getting no formatting (or very little) when viewing the
..html files in view source in browsers even though the files
uploaded were formatted (and I am talking only modest line
breaks, I don't use indenting). No amount of reloading and
overwriting from the machine here to the server elsewhere fixed
the problem. When a file uploaded it lost its formatting on the
server. One can view the file that is on the server in FTP
programs by "opening in a a chosen editor on the local machine"
and doing this also showed the problem of lost formatting.

There seem to be two forms of overwriting:

(1) The normal one of grabbing the file.html from a local folder
and dragging over to the remote server window to tell the FTP
program to replace file.html with this file.

(2) Saving a changed "viewed from the server" file. In some FTP
programs one can view the contents of text files on the server in
any nominated text editor. And, what is more, change the contents
and save, the save being to the server file itself.

Now, if I replace the contents of the file as viewed according to
(2) by copy and paste from my local (formatted) files and save,
the formatting then sticks!

--
dorayme

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация