I have some HTML / PHP files created in another application and they originally had single line spacing.
When I edit these files with HTML Editor version 12.5 build 412, they have been changed to double line spacing. When I edit and upload again, with each upload it inserts more blank lines. So now after three uploads there are three blank lines so my file is a real challenge to search as it is three times longer. I am including a sample section of the file as it is now.
Why does it add these extra lines and how can I remove them?
<td> <img src="../PSite/images/BlackLine.png" width="2" height="40" alt="BlackLine (2K)" />
<img src="../PSite/images/ClosePage.png" align="middle" height="30" id="CloseBtn" alt="ClosePage" onmouseover="DoSwitchCl(1)" onmouseout="DoSwitchCl(0)" onclick="CloseW()" />
</td>
<td>
</td>
</tr>
</table>
</td></tr>
<tr><td colspan="4">
<div style="position: relative; height:2; top: 0; left: 50%;">
<form action="../includes/CServer.php" name="ItemUp" id="ItemUp" method="post">
<input type="hidden" name="AddrID" id="AddrID" value="" />
<input type="hidden" name="ItmName" id="ItmName" value="" />
<img src="../PSite/images/AddToCart.png" align="middle" height="30" width="75" id="BuyBtn" alt="AddToCart" onmouseover="DoSwitch(1)" onmouseout="DoSwitch(0)" onclick="AddItem()" />
</form>
</div>
</td></tr>
</table><hr>
When I edit these files with HTML Editor version 12.5 build 412, they have been changed to double line spacing. When I edit and upload again, with each upload it inserts more blank lines. So now after three uploads there are three blank lines so my file is a real challenge to search as it is three times longer. I am including a sample section of the file as it is now.
Why does it add these extra lines and how can I remove them?
<td> <img src="../PSite/images/BlackLine.png" width="2" height="40" alt="BlackLine (2K)" />
<img src="../PSite/images/ClosePage.png" align="middle" height="30" id="CloseBtn" alt="ClosePage" onmouseover="DoSwitchCl(1)" onmouseout="DoSwitchCl(0)" onclick="CloseW()" />
</td>
<td>
</td>
</tr>
</table>
</td></tr>
<tr><td colspan="4">
<div style="position: relative; height:2; top: 0; left: 50%;">
<form action="../includes/CServer.php" name="ItemUp" id="ItemUp" method="post">
<input type="hidden" name="AddrID" id="AddrID" value="" />
<input type="hidden" name="ItmName" id="ItmName" value="" />
<img src="../PSite/images/AddToCart.png" align="middle" height="30" width="75" id="BuyBtn" alt="AddToCart" onmouseover="DoSwitch(1)" onmouseout="DoSwitch(0)" onclick="AddItem()" />
</form>
</div>
</td></tr>
</table><hr>
You can go ahead a remove the extra line spaces. They will not hurt the code if taken out.
All you have to do is just delete them.

All you have to do is just delete them.

"An Apple doth not fall far from its tree, yet an orange does."
https://lbwebsitedesign.com - Responsive Web Design & Web Hosting Services.
http://helpsite.sirage.com - HTML5, CSS3 and CC Help Video Blog.
https://lbwebsitedesign.com - Responsive Web Design & Web Hosting Services.
http://helpsite.sirage.com - HTML5, CSS3 and CC Help Video Blog.
Do you have a link to the site? It would be more helpful to see the entire code setup. The code pasted is helpful, but a link would show us more on the context it's added.
I've never seen the editor add anything at all unless there was some weird code that was already on the page that was messed up that caused things so maybe we can see better with the checking the actual site.
I've never seen the editor add anything at all unless there was some weird code that was already on the page that was messed up that caused things so maybe we can see better with the checking the actual site.
Try pasting the code into notepad. Then save it and then copy and paste into the editor. A lot of times the applications put their own twist on formatting and using notepad as the middle man sorta speak will help strip out any of this weird formatting.

I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
It's easy to overlook something you're not looking for.
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
SirAGE: I did the delete thing. But if I were to edit the file again and the lines were added again and I delete them and they are added again, does that sound like a process any serious coder would feel comfortable with. After all, a file with several hundred, or even thousands of lines becomes one of those things one would rather not deal with if the editor is automatically adding unwanted blank lines. Then think of having to delete them manually. Of course one can do a find and replace process. But why would one be satisfied with a program that adds to ones work by adding unwanted blank lines?
Then, Knowing that CoffeeCup doesn't put out junk software, you can see my thought of finding out if anyone else has experienced this type of problem and if this was just an anomaly, a bug, or just an isolated case.
I was hoping someone could give some constructive comments.
------------------------------------------------------------------------------------
Jo Ann: I don't feel comfortable giving anyone the kind of access to the site that would allow them to see the real pages.. Most of the code is PHP and Javascript linked files with MySQL data that constructs the pages dynamically so what you would see from the view page source would tell you little of what is really going on.
The page I was working on is a function page that contains pieces and interactions with most of the pages on the site but it is never shown. It started out as compact as I like but with each upload it acquired a blank line between each line of written text. As I said, three uploads added three blank lines between each text line. Where there was already a blank line there was now four etc..
My real issue / question was a concern over whether or not the upload process was some how causing the problem. Before the upload, the code looks as normal. After the upload the actual file on the server is loaded with the extra lines. On subsequent downloads the file having the extra lines is a bit more interesting as the place you expected to find a section of code is now twice as far down the page. Now on upload the added lines again. So as you see from the portion I sent, it requires a lot of movement to reach the code you are looking for. This would not really be a problem for some who are strictly using the HTML Editor, as they would always be editing the local file and uploading from there. Thus only one set of extra blank lines would ever show up. However I use several different editors and a number of people may work on the same file. Uploading and downloading to different machines. You can see how that would cause the acquisition of a lot of dead space. Or a lot of manual removal. If no one has ever experienced this before, then just know that I did and if in the future it occurs to someone else, then maybe we can start to figure out what caused it.
Thanks for the help.
Keep up the good work! I really appreciate the fact that you people are very responsive and really do care about the software you sell and represent and the people who use it.
Chuck
Then, Knowing that CoffeeCup doesn't put out junk software, you can see my thought of finding out if anyone else has experienced this type of problem and if this was just an anomaly, a bug, or just an isolated case.
I was hoping someone could give some constructive comments.
------------------------------------------------------------------------------------
Jo Ann: I don't feel comfortable giving anyone the kind of access to the site that would allow them to see the real pages.. Most of the code is PHP and Javascript linked files with MySQL data that constructs the pages dynamically so what you would see from the view page source would tell you little of what is really going on.
The page I was working on is a function page that contains pieces and interactions with most of the pages on the site but it is never shown. It started out as compact as I like but with each upload it acquired a blank line between each line of written text. As I said, three uploads added three blank lines between each text line. Where there was already a blank line there was now four etc..
My real issue / question was a concern over whether or not the upload process was some how causing the problem. Before the upload, the code looks as normal. After the upload the actual file on the server is loaded with the extra lines. On subsequent downloads the file having the extra lines is a bit more interesting as the place you expected to find a section of code is now twice as far down the page. Now on upload the added lines again. So as you see from the portion I sent, it requires a lot of movement to reach the code you are looking for. This would not really be a problem for some who are strictly using the HTML Editor, as they would always be editing the local file and uploading from there. Thus only one set of extra blank lines would ever show up. However I use several different editors and a number of people may work on the same file. Uploading and downloading to different machines. You can see how that would cause the acquisition of a lot of dead space. Or a lot of manual removal. If no one has ever experienced this before, then just know that I did and if in the future it occurs to someone else, then maybe we can start to figure out what caused it.
Thanks for the help.
Keep up the good work! I really appreciate the fact that you people are very responsive and really do care about the software you sell and represent and the people who use it.
Chuck
Eric: I only use plain text editing software, but that is a good suggestion. Kind of like the old "if in doubt, reboot" procedure. That is one reason I decided to use the HTML Editor, as it is a plain text editor. I have been criticized for doing things the hard way by using these type of editors, but I know what I am seeing and I don
t have to wonder if the program is doing things I don't want. I have spent hours working on other peoples web site nightmares that were created in these "point and shoot" programs. Even the De-facto standard, Dreamweaver, puts code all over the place, making it a bad dream to try to correct. So I thank you for taking the time to respond. Please read my previous post explaining the problem and the issues I had in mind when I made the original post.
Thanks again!
Chuck
t have to wonder if the program is doing things I don't want. I have spent hours working on other peoples web site nightmares that were created in these "point and shoot" programs. Even the De-facto standard, Dreamweaver, puts code all over the place, making it a bad dream to try to correct. So I thank you for taking the time to respond. Please read my previous post explaining the problem and the issues I had in mind when I made the original post.
Thanks again!
Chuck
Hiya Chuck,
The HTML Editor doesn't strip rogue code from the code and scripts you are copying and pasting from places so it is still always best to paste it into Notepad or Notepad++ (or your text editor of choice) to do this for you. I would say to try that also same as Eric mentions. I've never seen the HTML Editor ever add spacing like that, used to see it in Frontpage and old versions of Dreamweaver, but never the HTML Editor.
The HTML Editor doesn't strip rogue code from the code and scripts you are copying and pasting from places so it is still always best to paste it into Notepad or Notepad++ (or your text editor of choice) to do this for you. I would say to try that also same as Eric mentions. I've never seen the HTML Editor ever add spacing like that, used to see it in Frontpage and old versions of Dreamweaver, but never the HTML Editor.
Chuck, I would suggest you open a support ticket and provide support with some sample pages so they can test it. I understand if you do not feel comfortable giving them the files, but they are needed to figure out the problem... Give them a ring and see what they can do for you...
I will be testing this myself and seeing if I can get it to replicate.
I will be testing this myself and seeing if I can get it to replicate.
"An Apple doth not fall far from its tree, yet an orange does."
https://lbwebsitedesign.com - Responsive Web Design & Web Hosting Services.
http://helpsite.sirage.com - HTML5, CSS3 and CC Help Video Blog.
https://lbwebsitedesign.com - Responsive Web Design & Web Hosting Services.
http://helpsite.sirage.com - HTML5, CSS3 and CC Help Video Blog.
Don't shoot me down, but I think this thread is a classic case...
It would be really really nice to see a CoffeeCup person who is totally conversant with the programming, answer this with some advice.
I really don't see what's so awful about doing that.. In a way, its amazing that no one has said anything here....
Anyway, I do understand that's how it is, and must say, you WILL get a response from opening a support ticket and hopefully it can be traced and sorted.
Meanwhile, all readers are in the dark.....
Peter
It would be really really nice to see a CoffeeCup person who is totally conversant with the programming, answer this with some advice.
I really don't see what's so awful about doing that.. In a way, its amazing that no one has said anything here....
Anyway, I do understand that's how it is, and must say, you WILL get a response from opening a support ticket and hopefully it can be traced and sorted.
Meanwhile, all readers are in the dark.....

Peter
Peter,
To be honest it sounds like a bad code on the page he is working with. Which is causing that issue. But it could be anything..
To be honest it sounds like a bad code on the page he is working with. Which is causing that issue. But it could be anything..
"An Apple doth not fall far from its tree, yet an orange does."
https://lbwebsitedesign.com - Responsive Web Design & Web Hosting Services.
http://helpsite.sirage.com - HTML5, CSS3 and CC Help Video Blog.
https://lbwebsitedesign.com - Responsive Web Design & Web Hosting Services.
http://helpsite.sirage.com - HTML5, CSS3 and CC Help Video Blog.
Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.