ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Taco Hoekwater <taco@elvenkind.com>
To: Yatskovsky <yatskovsky@gmail.com>,
	 mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: CSS-like coding style
Date: Sat, 17 Feb 2007 17:42:18 +0100	[thread overview]
Message-ID: <45D7306A.6000907@elvenkind.com> (raw)
In-Reply-To: <1195309941.20070217180852@gmail.com>

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

  reply	other threads:[~2007-02-17 16:42 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.1264.1171692908.17432.ntg-context@ntg.nl>
2007-02-17 16:08 ` Vyatcheslav Yatskovsky
2007-02-17 16:42   ` Taco Hoekwater [this message]
2007-02-17 18:47   ` Peter Münster
2007-02-19  9:26     ` Hans Hagen
2007-02-17 18:55   ` Aditya Mahajan
2007-02-19  9:28     ` Hans Hagen
2007-02-17 22:26 ` replacing symbols Vyatcheslav Yatskovsky

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=45D7306A.6000907@elvenkind.com \
    --to=taco@elvenkind.com \
    --cc=ntg-context@ntg.nl \
    --cc=yatskovsky@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).