Jump to content

[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?

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?

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.

Archived

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

×
×
  • 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.