Re: [WSG] Preserve whitespace

2007-12-12 Thread Chris Knowles
Simon Cockayne wrote: > > This is *not* a presentation/layout issue. from this i gather you mean it doesn't matter how it appears on screen to the person viewing it - in other words it doesn't matter whether it visually has any indent or not. In which case you can ignore pre, nbsp, css as they ar

Re: [WSG] Preserve whitespace

2007-12-12 Thread Hassan Schroeder
Simon Cockayne wrote: This is *not* a presentation/layout issue. I have a field that contains leading blanks (space) characters that the user tells me has semantic meaning that they wish to preserve. So what do you mean by "preserve"? The text nodes inside foo and foo aren't equal in valu

Re: [WSG] Preserve whitespace

2007-12-12 Thread Joseph Taylor
Upon reading the reponses, one thing remains clear: Without an example to look at, the options have no relevance. You claim your client says the empty space is part of the information? Show us. Only then can the appropriate solution be isolated. Slightly off-topic, but perhaps not: I have

[WSG] Preserve whitespace

2007-12-12 Thread Simon Cockayne
Hi, Ok...I asked a question about how to preserve whitespace...I got a variety of answers (use PRE, use nbsp, use CSS). I shall clarify the question. This is *not* a presentation/layout issue. I have a field that contains leading blanks (space) characters that the user tells me has semantic mea

Re: [WSG] preserve whitespace

2007-12-11 Thread James Ellis
Hi You'd have to define a "blank" is it a tab -> \t, a newline -> \n, a carriage return \r You can use pre or you can use "white-space : pre;" to PREserve the whitespace in the string appearing in the cell.   is an html entity for the non breaking space character. You should use it when you

Re: [WSG] preserve whitespace

2007-12-11 Thread Christian Montoya
> - Original Message - > From: Simon Cockayne > To: wsg@webstandardsgroup.org > Sent: Tuesday, December 11, 2007 8:09 PM > Subject: [WSG] preserve whitespace > > Hi, > > > I have an HTML page and I want to (well my client wants me to) preserve > leading bl

Re: [WSG] preserve whitespace

2007-12-11 Thread David Hucklesby
On Tue, 11 Dec 2007 16:09:03 +, Simon Cockayne wrote: > > I have an HTML page and I want to (well my client wants me to) preserve > leading blanks > in the value of a table data cell. ... > td {white-space: pre;} /* perhaps? */ Cordially, David -- www.hucklesby.com

Re: [WSG] preserve whitespace

2007-12-11 Thread Константин Ефимов
rg Sent: Tuesday, December 11, 2007 8:09 PM Subject: [WSG] preserve whitespace Hi, I have an HTML page and I want to (well my client wants me to) preserve leading blanks in the value of a table data cell. I could use around the data. Or I could use an   for each leading blank.

Re: [WSG] preserve whitespace

2007-12-11 Thread Patrick H. Lauke
Quoting Simon Cockayne <[EMAIL PROTECTED]>: I have an HTML page and I want to (well my client wants me to) preserve leading blanks in the value of a table data cell. Depending on the data...right-align the text? -- Patrick H. Lauke _

Re: [WSG] preserve whitespace

2007-12-11 Thread Stepan Reznikov
td {text-indent: 1em;} *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] *

Re: [WSG] preserve whitespace

2007-12-11 Thread Max A. Shpack
Hi It is non-schematic way and usually you can solve this problem with css padding property. If you don't -- use   to keep whitespace. Max. 2007/12/11, Simon Cockayne <[EMAIL PROTECTED]>: > Hi, > > > > I have an HTML page and I want to (well my client wants me to) preserve > leading blanks in t

[WSG] preserve whitespace

2007-12-11 Thread Simon Cockayne
Hi, I have an HTML page and I want to (well my client wants me to) preserve leading blanks in the value of a table data cell. I could use around the data. Or I could use an   for each leading blank. Any others? What is the "standard" way to do it? Cheers, Simon ***