Fog Creek Software
Discussion Board




Knowledge Base
Documentation
Terry's Tips
Darren's Tips

Reply to "Non-breaking spaces"

Joel wrote:

> (If anyone can think of a good solution to deciding when
> to insert   and when not to, I'd love to hear it.)

On Normal -> HTML, convert n spaces to

n/2 * (space nbsp) n%2 * space

On HTML -> Normal, convert n space or nbsp's to n spaces.

It is no possible to solve this problem by converting characters individually IME.

I hope this helps.

Chris John Jordan (CityDesk 1.0.27, Win95B)
Monday, March 25, 2002

How about never insert a nbsp unless the user specifically asks for it with shift-space?

Am I missing something?

I know, I know, the user will expect to see lots of spaces when they press space a lot of times - at least some users who have never used HTML before but are writing HTML. In this case perhaps nice notification of some sort is the right solution?

Or perhaps the user should have an option to turn this behaviour off so us HTML-savvy people can get rid of it?

Again it seems the problem has been inverted. For those users that may or may not exist that want to do this, all of us real users keep inserting lots of nbsp's when we don't want to.

Maury Markowitz
Tuesday, March 26, 2002

> How about never insert a nbsp unless the user
> specifically asks for it with shift-space?

That's not a solution to Joel's requirement.

> Am I missing something?

I think so - the user of Normal View is not

> writing HTML

- he/she is writing WYSIWYG text.

> For those users that may or may not exist that want to
> do this,

As CityDesk says:

"With CityDesk, people who don't know anything about HTML or web servers can easily add, edit, and remove articles from a web site, using a program that is as easy as a word processor. "

> all of us real users keep inserting lots of nbsp's
> when we don't want to

They should be using HTML View. Or even Visual Notepad...

Chris John Jordan (CityDesk 1.0.27, Win95B)
Thursday, March 28, 2002

*  Recent Topics

*  Fog Creek Home