From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/33401 Path: news.gmane.org!not-for-mail From: Taco Hoekwater Newsgroups: gmane.comp.tex.context Subject: Re: CSS-like coding style Date: Sat, 17 Feb 2007 17:42:18 +0100 Message-ID: <45D7306A.6000907@elvenkind.com> References: <1195309941.20070217180852@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1171730770 23436 80.91.229.12 (17 Feb 2007 16:46:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 17 Feb 2007 16:46:10 +0000 (UTC) To: Yatskovsky , mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Feb 17 17:46:02 2007 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1HIShG-00037g-Ji for gctc-ntg-context-518@m.gmane.org; Sat, 17 Feb 2007 17:46:02 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 510C5140; Sat, 17 Feb 2007 17:43:45 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 01760-07; Sat, 17 Feb 2007 17:43:44 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9827F137; Sat, 17 Feb 2007 17:40:09 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 68052137 for ; Sat, 17 Feb 2007 17:40:07 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 01760-05 for ; Sat, 17 Feb 2007 17:40:02 +0100 (CET) Original-Received: from post-23.mail.nl.demon.net (post-23.mail.nl.demon.net [194.159.73.193]) by ronja.ntg.nl (Postfix) with ESMTP id C2F5B11B for ; Sat, 17 Feb 2007 17:40:02 +0100 (CET) Original-Received: from boo.demon.nl ([82.161.175.147]:36523 helo=[10.10.0.3]) by post-23.mail.nl.demon.net with esmtp (Exim 4.51) id 1HISdf-000KZx-Bz; Sat, 17 Feb 2007 16:42:19 +0000 User-Agent: Mozilla Thunderbird 1.0.6-7.6.20060mdk (X11/20050322) X-Accept-Language: en-us, en In-Reply-To: <1195309941.20070217180852@gmail.com> X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:33401 Archived-At: Vyatcheslav Yatskovsky wrote: > Hello, > I'm puzzled with an odd thing. If I try to adopt CSS-like coding style, A rather short answer is possible: Don't do that :-) Seriously: if it works, it is by conincidence only. I will note even explain you the (current) rules, because they may change tomorrow. Always make sure that there is no whitespace surrounding your values, nor whitespace trailing a key. Whitespace *before* a key is ignored, but that is the only documented case where whitespace is irrelevant. The inverse is also true, btw. If you actually need a space preceding or trailing a value, you have to wrap the entire requested item in a set of curly braces. There is no guarantee that the space will be retained otherwise. Cheers, Taco