Solved Notepad wordwrap ?bug? - double spacing

Lykho

New member
Member
VIP
Local time
3:39 PM
Messages
115
Location
New Zealand
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 Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
custom
OS
Windows 7 Home Premium 32bit
CPU
AMD Athlon II X2 250 Processor 3.00 GHz
Motherboard
Gigabyte
Memory
2Gb DDR2
Graphics Card(s)
onboard
Sound Card
onboard
Monitor(s) Displays
Viewsonic VA2448m-LED 23.6" LED
Screen Resolution
1920 x 1080
Hard Drives
internal: 1.5 TB Samsung Spinpoint
external: Samsung 2TB USB3.0; 1.5TB Samsung G3 Station
PSU
350w
Case
CoolerMaster
Keyboard
Microsoft Desktop 800
Mouse
Microsoft Desktop 800
Internet Speed
1Mbps
Antivirus
MSE
Browser
Firefox
Other Info
3.4 rating on the "Windows Experience Index"
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 Computer

Computer Manufacturer/Model Number
Acer 7520, Packard Bell dot se, Acer travelmate 2423
OS
Win 7 Ult + Starter, XP Pro +Home, 2kAS, Linux Mint 8, SuperOS
CPU
AMD 64 Athlon X2 , Intel Atom N450, Intel Celeron M 1.50 Ghz
Motherboard
Acer Fuquene
Memory
2.5GB ; 1GB; 2GB
Graphics Card(s)
Nvidia GeForce7000m; Intel; Intel
Sound Card
Realtek AC57
Monitor(s) Displays
17" ;10.1"; 19"
Screen Resolution
1440x900;1024x600;1440x900;
Hard Drives
WD 80, WD 320;
PSU
19v
Case
Laptop
Cooling
Air
Internet Speed
9.7Mb/s down 0.99Mb/s up
Other Info
ISP VIRGINMEDIA 10M cable broadband - D-Link DIR615 wireless router, 3Com OfficeConnect ASDL router used as wireless extender switch
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 Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
custom
OS
Windows 7 Home Premium 32bit
CPU
AMD Athlon II X2 250 Processor 3.00 GHz
Motherboard
Gigabyte
Memory
2Gb DDR2
Graphics Card(s)
onboard
Sound Card
onboard
Monitor(s) Displays
Viewsonic VA2448m-LED 23.6" LED
Screen Resolution
1920 x 1080
Hard Drives
internal: 1.5 TB Samsung Spinpoint
external: Samsung 2TB USB3.0; 1.5TB Samsung G3 Station
PSU
350w
Case
CoolerMaster
Keyboard
Microsoft Desktop 800
Mouse
Microsoft Desktop 800
Internet Speed
1Mbps
Antivirus
MSE
Browser
Firefox
Other Info
3.4 rating on the "Windows Experience Index"
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. :roflmao:
 

My Computer

Computer Manufacturer/Model Number
Acer 7520, Packard Bell dot se, Acer travelmate 2423
OS
Win 7 Ult + Starter, XP Pro +Home, 2kAS, Linux Mint 8, SuperOS
CPU
AMD 64 Athlon X2 , Intel Atom N450, Intel Celeron M 1.50 Ghz
Motherboard
Acer Fuquene
Memory
2.5GB ; 1GB; 2GB
Graphics Card(s)
Nvidia GeForce7000m; Intel; Intel
Sound Card
Realtek AC57
Monitor(s) Displays
17" ;10.1"; 19"
Screen Resolution
1440x900;1024x600;1440x900;
Hard Drives
WD 80, WD 320;
PSU
19v
Case
Laptop
Cooling
Air
Internet Speed
9.7Mb/s down 0.99Mb/s up
Other Info
ISP VIRGINMEDIA 10M cable broadband - D-Link DIR615 wireless router, 3Com OfficeConnect ASDL router used as wireless extender switch
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 Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
custom
OS
Windows 7 Home Premium 32bit
CPU
AMD Athlon II X2 250 Processor 3.00 GHz
Motherboard
Gigabyte
Memory
2Gb DDR2
Graphics Card(s)
onboard
Sound Card
onboard
Monitor(s) Displays
Viewsonic VA2448m-LED 23.6" LED
Screen Resolution
1920 x 1080
Hard Drives
internal: 1.5 TB Samsung Spinpoint
external: Samsung 2TB USB3.0; 1.5TB Samsung G3 Station
PSU
350w
Case
CoolerMaster
Keyboard
Microsoft Desktop 800
Mouse
Microsoft Desktop 800
Internet Speed
1Mbps
Antivirus
MSE
Browser
Firefox
Other Info
3.4 rating on the "Windows Experience Index"
It's called getting old - things just don't work as well as you remember they used to. :roflmao:
 

My Computer

Computer Manufacturer/Model Number
Acer 7520, Packard Bell dot se, Acer travelmate 2423
OS
Win 7 Ult + Starter, XP Pro +Home, 2kAS, Linux Mint 8, SuperOS
CPU
AMD 64 Athlon X2 , Intel Atom N450, Intel Celeron M 1.50 Ghz
Motherboard
Acer Fuquene
Memory
2.5GB ; 1GB; 2GB
Graphics Card(s)
Nvidia GeForce7000m; Intel; Intel
Sound Card
Realtek AC57
Monitor(s) Displays
17" ;10.1"; 19"
Screen Resolution
1440x900;1024x600;1440x900;
Hard Drives
WD 80, WD 320;
PSU
19v
Case
Laptop
Cooling
Air
Internet Speed
9.7Mb/s down 0.99Mb/s up
Other Info
ISP VIRGINMEDIA 10M cable broadband - D-Link DIR615 wireless router, 3Com OfficeConnect ASDL router used as wireless extender switch
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 Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
custom
OS
Windows 7 Home Premium 32bit
CPU
AMD Athlon II X2 250 Processor 3.00 GHz
Motherboard
Gigabyte
Memory
2Gb DDR2
Graphics Card(s)
onboard
Sound Card
onboard
Monitor(s) Displays
Viewsonic VA2448m-LED 23.6" LED
Screen Resolution
1920 x 1080
Hard Drives
internal: 1.5 TB Samsung Spinpoint
external: Samsung 2TB USB3.0; 1.5TB Samsung G3 Station
PSU
350w
Case
CoolerMaster
Keyboard
Microsoft Desktop 800
Mouse
Microsoft Desktop 800
Internet Speed
1Mbps
Antivirus
MSE
Browser
Firefox
Other Info
3.4 rating on the "Windows Experience Index"
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 Computer

Computer Manufacturer/Model Number
Scratch built
OS
Windows 7 x64 Ultimate
CPU
i7 960
Motherboard
Asus P6X58D
Memory
12 Gig Corsair Dominator
Graphics Card(s)
Nvidia 480
Sound Card
Maudio Delta 44 + breakout box
Monitor(s) Displays
Dell UltraSharp U2410 24in and Samsung 21 dual monitors
Screen Resolution
1920x1200 and 1280x1024
Hard Drives
Primary: Intel X-25M G2 160G SSD
Secondary: Segate baracuda 1.0 TB
HDs in AHCI mode.
PSU
Corasair TX850
Case
Cooler Master HAF
Cooling
Corsair H50
Keyboard
Logitech G15 + N52 game pad
Mouse
Logitech MX518
Internet Speed
15kbs down 4.5kbps up
Other Info
WEI 7.6
CPU & RAM 7.6
Graphics 7.9
Hard disk 7.7
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, :mad:


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 Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
custom
OS
Windows 7 Home Premium 32bit
CPU
AMD Athlon II X2 250 Processor 3.00 GHz
Motherboard
Gigabyte
Memory
2Gb DDR2
Graphics Card(s)
onboard
Sound Card
onboard
Monitor(s) Displays
Viewsonic VA2448m-LED 23.6" LED
Screen Resolution
1920 x 1080
Hard Drives
internal: 1.5 TB Samsung Spinpoint
external: Samsung 2TB USB3.0; 1.5TB Samsung G3 Station
PSU
350w
Case
CoolerMaster
Keyboard
Microsoft Desktop 800
Mouse
Microsoft Desktop 800
Internet Speed
1Mbps
Antivirus
MSE
Browser
Firefox
Other Info
3.4 rating on the "Windows Experience Index"
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.
 
Last edited by a moderator:

My Computer

OS
Windows XP Professional Service Pack 3
I know this is from 2011 but since I've had this problem since XP (that's 2001) or even before (Win98?) I must say this year being 2013 makes not much difference to me.

This problem has annoyed me for a long time, even more how most "Experts" have no clue about it even if it's so obvious to me, since every single time I use Notepad it happens.

It happens because every time I configure a new computer and open Notepad I just choose "Word wrap", that's because I just hate opening text files and having to scroll horizontally to read every single line. Or having to press Enter every time I want a new line when typing. I just press Enter when I want a new paragraph. I believe many people do the same.

I've even had text destroyed from this bug (scrambled source code). Can't reproduce right now.

Now I'm not here just to rant. I just want to recommend an alternative to anyone coming here for a solution which there is NOT, since only Microsoft can fix this 12+ year old bug (oh and also happens in W8.).

The alternative is called Notepad++ It can substitute notepad, it's free, open source and has more features.
 

My Computer

Computer Manufacturer/Model Number
Me!!!
OS
Windows 7 Ultimate 32bit.
CPU
Intel Core2Duo 2.4
Motherboard
Intel DG965WGH
Memory
Kingston 1GB
Graphics Card(s)
ATI Radeon HD4670
Monitor(s) Displays
Old CRT's RULE!!!
Screen Resolution
1024x768
Hard Drives
2 Seagate Barracudas

1) 160GB OS
2) 1.5TB files and pagefile
PSU
stock (300W?)
Case
cheap case
Cooling
stock fan
Keyboard
Genius klp0210
Mouse
Logitech M-BZ96C
Internet Speed
512K :(
I too apologise for posting in an old thread - and it's now much older than it was when the last such "crime" was committed here.:o I'm not here to rant either, just to add to the known information about this wordwrap issue by warning about a further potential problem it causes that I've just noticed. You never know, it might save somebody a bit of trouble.

Simply stated, the problem is that document searches can be adversely affected by the "bug."

If you have WordWrap turned on in Notepad and then save your document, and then do Find for a string that (in the document) happens to have been "broken" by the word wrapping, then Notepad won't find it. Although WordWrap's apparent line breaks are supposed to be just a display thing and not a real attribute of your content, in some respects they behave as though they are real.

The moral is, don't be too quick to trust the results of Find (or Find And Replace for that matter) if you're doing critical work. The seriousness of this "bug" is that you could be misled into thinking a particular string was absent from a document, or that all instances of it had been replaced. I noticed the problem while writing code - I happened to do a Find And Replace to quickly and easily change some directory pathnames to a different partition. It wasn't an easy error to spot because only a couple of instances of my search string were affected and thus missed, but luckily I noticed it before I'd trustingly moved on to trying out my work. I've often seen NotePad recommended for writing code, but I've never seen anybody warning about that problem.

Thanks for your time. I'll shut up now.:zip:
 

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
HP Probook
OS
Win 7 Pro 32-bit
Back
Top