homepage Welcome to WebmasterWorld Guest from 54.166.65.9
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / WYSIWYG and Text Code Editors
Forum Library, Charter, Moderator: open

WYSIWYG and Text Code Editors Forum

    
Pasting code from Notepad to Dreamweaver, double spacing
dreanweaver double spacing text pasted from notepad
microlinx




msg:3277120
 11:04 pm on Mar 9, 2007 (gmt 0)

This may be ridiculously simple to resolve, but I'm at a loss:
When I copy text, particularly from a PHP script, then paste it into an empty code section of a new page in Dreamweaver for doing some basic editing, Dreamweaver is double spacing all the text.
It's maddening!

Here's a small example:

original text:

TABLE border=0 class=tab cellspacing=0 cellpadding=5 align=center>
<TR bgcolor="#dddddd">
<TD nowrap>Edit Material</TD>
<TD nowrap>ID</TD>
<TD nowrap>Number</TD>
<TD nowrap>Name</TD>
<TD nowrap>Unit</TD>
<TD nowrap>Length</TD>
<TD nowrap>Width</TD>
<TD nowrap>Height</TD>
<TD nowrap>Price</TD>
<TD nowrap>Comments</TD>
<TD nowrap>Delete</TD>

After paste:

TABLE border=0 class=tab cellspacing=0 cellpadding=5 align=center>

<TR bgcolor="#dddddd">

<TD nowrap>Edit Material</TD>

<TD nowrap>ID</TD>

<TD nowrap>Number</TD>

<TD nowrap>Name</TD>

<TD nowrap>Unit</TD>

<TD nowrap>Length</TD>

<TD nowrap>Width</TD>

<TD nowrap>Height</TD>

<TD nowrap>Price</TD>

<TD nowrap>Comments</TD>

<TD nowrap>Delete</TD>

Any help for this moron?
(me)

 

dramstore




msg:3277133
 11:19 pm on Mar 9, 2007 (gmt 0)

My guess as to why its happening (and it is only a guess) is that notepad has an carriage return/newline characters (\n\r) on the end of each line.

Then when you paste, dreamweaver is also putting those on the end too, so you end up with 2.

How you would solve that I'm not sure, may be play around with the settings in notepad wrap/nowrap or something?

microlinx




msg:3277552
 2:27 pm on Mar 10, 2007 (gmt 0)

Thanks for the comeback...
Tried that, no effect...still double spacing.
In fact, if I cut the same code from notpad and paste into this scrolling text box (on webmasterworld topic reply) it does the same thing. So, perhaps it is a problem with Notepad, not Dreamweaver.

The original text was created using Edit Plus.

I thought Notepad always stripped CR's.

dramstore




msg:3277584
 3:15 pm on Mar 10, 2007 (gmt 0)

Maybe paste it into word then look at the control characters - it might show you where the problem is?

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / WYSIWYG and Text Code Editors
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved