Hi
I'm trying something which should be really simple, but it's not working.
I want to limit lines of text to a maximum of 60 characters (because the text will be sent in an email and I want to cater for the simplest email clients).
I've set up a new document class. I've checked "Word wrap long lines" and selected "Save with hard breaks". I've also checked "Word break at column number:" and entered "60" in this field.
This appears to work OK for MOST lines - i.e TextPad inserts a hard line break when I save the file with the appropriate extension - but NOT all! I've got lines of anything up to 68 characters. What's more, some of the lines DON'T end in a line break.
Any ideas gratefully received
Greg
Line breaks not working for Doc class
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
Re: Line breaks not working
This line wrapping is a problem for me too!Greg Gillet wrote:This appears to work OK for MOST lines - i.e TextPad inserts a hard line break when I save the file with the appropriate extension - but NOT all! I've got lines of anything up to 68 characters. What's more, some of the lines DON'T end in a line break.
In the current version it works only for non-space characters. If you enter some spaces near at the last column (see "Word break at column number"), all following spaces will be in the same line (and sometimes the cursor is scrolling out of the visible window). Only the next entered non-space character will jump into the next line.
I prefer a "word wrapping" for spaces too. Could be an additional configuration option in textpad.
Regards
Heiko J.
This must be a bug
At the very least, it's a feature that's not implemented in a way that's useful to me and my colleagues.
Here is the behavior I want when I hit Ctrl-Shift-J to wrap individual lines at a certain column number: when I set Word Break at Column Number to 66, I want NO CHARACTERS past column 66.
That's how my previously installed version worked, but now I am getting lines of 67, 68, and occasionally more. What happened, and how can I fix this? It's kinda driving me crazy having to go back through and manually fix these line breaks.
Thanks in advance for any assistance. I'm willing to do crazy workarounds to a point.
Here is the behavior I want when I hit Ctrl-Shift-J to wrap individual lines at a certain column number: when I set Word Break at Column Number to 66, I want NO CHARACTERS past column 66.
That's how my previously installed version worked, but now I am getting lines of 67, 68, and occasionally more. What happened, and how can I fix this? It's kinda driving me crazy having to go back through and manually fix these line breaks.
Thanks in advance for any assistance. I'm willing to do crazy workarounds to a point.
Wrap hard
The easiest would be to write a script hat does it.
It would be easier to do it in TextPad, but the behavior seems random.
Divide the text in substrings, and find the closest backwards match whitespace (unless you're ok with words cut in the middle)
It would be easier to do it in TextPad, but the behavior seems random.
Divide the text in substrings, and find the closest backwards match whitespace (unless you're ok with words cut in the middle)
Charles
http://www.charleswebdesign.com/
http://www.charleswebdesign.com/