Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Notepad wordwrap ?bug? - double spacing


09 May 2011   #1

Windows 7 Home Premium 32bit
 
 
Notepad wordwrap ?bug? - double spacing

using Notepad with word-wrap on, everything works fine, until I save the file, after which, if I amend a line and the text adjusts (or I re-size the window, and expect the wrapping to follow suit), it fails to wrap properly--it's as if, saving it, it hasn't remembered that it was only 'wrapped to window' and not actually paragraphed, so I have to click to the end of each broken sentence and backspace to recreate proper word-wrapping...which displays/wraps/etc. just fine and dandy until saving the txt again.

when I copy-paste some lines of text from Notepad into Wordpad, after this wrapping issue has occurred, Wordpad displays the text wrapping in accord with the Wordpad settings, the only bug being that where Notepad had wrapped the lines of text there is now two spaces between the word instead of just the one.

I know this is remarkably trivial, but it has been niggling at me for ages, and I'm just curious how aware of this people are, and how it is regarded (I mean, is this a feature desirable for the way other people tend to use that program?)

My System SpecsSystem Spec
.

09 May 2011   #2

Win 7 Ult + Starter, XP Pro +Home, 2kAS, Linux Mint 8, SuperOS
 
 

Text editors like Notepad, for the most part understand printing characters and white space, line breaks and carriage returns only, and the concepts of page size, paragraphs and line spacing falls into the realm of word processing, of which Wordpad is a simple example.

If a text document with line breaks is put into a word processor like MS Word, each line break signifies a new paragraph, which can be seen if the non-printing character codes are shown.

If a text document is wrapped by inserting line breaks to fit within a window, and a word processor which automatically inserts an extra line at the end of paragraphs is used to view the text file, it will appear double spaced.

No bug, just a conflict of two different systems.
My System SpecsSystem Spec
09 May 2011   #3

Windows 7 Home Premium 32bit
 
 

just to be clear, I'm not talking about 'double-spacing' (paragraph issues), but..two..spaces..between..a..word..like..this..sentence (though only between the words where the wrapping occurred.

edit: I replaced spaces with '..' because the forum automatically corrected two-spaces to one-space.
My System SpecsSystem Spec
.


10 May 2011   #4

Win 7 Ult + Starter, XP Pro +Home, 2kAS, Linux Mint 8, SuperOS
 
 

I regard Notepad and Wordpad as free tools and as such, limited to function, adequate for what they are supposed to do. You get what you pay for.

Extra spaces are known in the business as "padding", hence Notepad and Wordpad.
My System SpecsSystem Spec
11 May 2011   #5

Windows 7 Home Premium 32bit
 
 

Quote   Quote: Originally Posted by fafhrd View Post
I regard Notepad and Wordpad as free tools and as such, limited to function, adequate for what they are supposed to do. You get what you pay for.
my gripe (as with the status-less status bar tray area) is that functions that once existed perfectly well no longer do. I think there's a difference between asking for improvements and asking that they stop ruining good things (a message Facebook have yet to receive).
My System SpecsSystem Spec
11 May 2011   #6

Win 7 Ult + Starter, XP Pro +Home, 2kAS, Linux Mint 8, SuperOS
 
 

It's called getting old - things just don't work as well as you remember they used to.
My System SpecsSystem Spec
11 May 2011   #7

Windows 7 Home Premium 32bit
 
 

Quote   Quote: Originally Posted by fafhrd View Post
It's called getting old - things just don't work as well as you remember they used to.

on the contrary, it's a problem of youth!

I miss my old faithful Windows Millennium it couldn't do much, but what it could do it did right, damnit!
My System SpecsSystem Spec
11 May 2011   #8

Windows 7 x64 Ultimate
 
 

I havent been able to reproduce the problem. Maybe if you give a step by step for the notepad fail...

I typed in a single line with word wrapping on till it wrapped 3-4 times. Then saved it, then reopened, then resized the window and the word wrapping still worked fine.

It sounds like you're saying that after saving and loading back into notepad, it acts like notepad had inserted a CR at the word wrap point, making one long line into several short ones?
My System SpecsSystem Spec
12 May 2011   #9

Windows 7 Home Premium 32bit
 
 

Quote   Quote: Originally Posted by fseal View Post
I havent been able to reproduce the problem. Maybe if you give a step by step for the notepad fail...

I typed in a single line with word wrapping on till it wrapped 3-4 times. Then saved it, then reopened, then resized the window and the word wrapping still worked fine.

It sounds like you're saying that after saving and loading back into notepad, it acts like notepad had inserted a CR at the word wrap point, making one long line into several short ones?
aaaaaaaaah. thanks for that.

if you do that again, save it, and then resize, the nuisance will occur.

as you've helped me realize -- if you save, then close, and re-open the file, you are free to resize with proper word-wrapping!

currently I'm not getting the 'word[spacespace]word' problem to occur,


ETA: I wonder if this is a small part of a larger Win 7 problem with refreshing/keeping up-to-date with what's going on. I also notice the nuisance of a Wordpad file continuing to display after it has been closed (until a window opens/is moved over that region), rather than vanishing and displaying whatever was behind it (wallpaper, explorer, whatever).
My System SpecsSystem Spec
16 Jul 2011   #10

Windows XP Professional Service Pack 3
 
 

I noticed this problem in Windows XP Notepad, it looks like it's still in Windows 7 Notepad:

If word wrap is on when you save, Notepad inserts CR CR LF characters at each wrap point in the display window (but not in the saved file).
  • This can cause the text cursor to move backwards.
  • If you resize the window, Notepad doesn't properly re-wrap the lines.
  • If you copy text that includes a CR CR LF wrap point and paste it in another program, strange things can happen. As you noticed, if you paste into WordPad, you get two spaces where the CR CR LF wrap points were in Notepad.
You can turn word wrap off and back on to clear the issue, but Notepad will move the text cursor to the top of the file when you do this. It looks like re-opening the file using File, Open clears the issue the same way, I hadn't thought of that before.
My System SpecsSystem Spec
Reply

 Notepad wordwrap ?bug? - double spacing




Thread Tools



Similar help and support threads for2: Notepad wordwrap ?bug? - double spacing
Thread Forum
Spacing between taskbar items and also system tray spacing Customization
Trying to copy txt file in Notepad. "Notepad: Access is denied" General Discussion
problem from replaced notepad ++ with notepad Installation & Setup
Great computing/technology based double double meaning jokes? Chillout Room
Notepad - Double click behaviour General Discussion
Double Monitors = Double Desktop Headache! General Discussion
icons spacing Customization

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 03:35 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33