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:



And here is source code:



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?

Link to comment
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?

Link to comment
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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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