Jump to content

Archived

This topic is now archived and is closed to further replies.

eevan79

[View source] code is wrapped and stripped

Recommended Posts

I'm not sure that this issue belongs to this forum because of problems that do not understand.

 

I do not know why this happens. When I look at the page source code is wrapped without spaces. It look like this:

viewsourcewrapped.jpg

 

And here is source code:

sourcecodea.jpg

 

I know that this is not a big problem, but can be irritating, especially when looking at the page source for debugging and so on.

 

This did not happen earlier. Does anyone know why this happens?

Share this post


Link to post
Share on other sites

all this really has to do with is the code editors right margin width.. wherein it will wrap large strings that go past the right margin boundary..

Share this post


Link to post
Share on other sites

It is very strange because it never has happened. Perhaps with the new version of the program.

 

I use Notepad++ and was looking at all options regarding text wrapping and margin boundary but any change has no effect.

Still do not understand why file is saved differently - when I view page source it's all wrapped and I want to be same as I wrote.

Has to do with settings options of code editor?

Share this post


Link to post
Share on other sites

Your source file probably has had the new-line characters changed to just LF (line-feed) and the browser you are using doesn't recognize those as new-lines.

 

Make sure that the new-line character setting in your editor is set to either CR or CRLF and re-save your file with the new setting.

Share this post


Link to post
Share on other sites

@PFMaBiSmAd,

finally solved. :)

I activated Show All Characters and it shows CR *without LF, so I converted it Win format.

 

Thanks.

Share this post


Link to post
Share on other sites

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.