From: Taco Hoekwater <taco@elvenkind.com>
Subject: Re: indenting in XML environment
Date: Sun, 15 Jan 2006 00:09:15 +0100 [thread overview]
Message-ID: <43C9849B.70909@elvenkind.com> (raw)
In-Reply-To: <EE40D1B4-8590-4F47-BFA4-3A31C1F76030@gmail.com>
Christopher G D Tipper wrote:
> Ok, after taking deep breath I'll try this issue again. I got indenting
> to work after putting \noindenting inside its own environment.
>
> However, the following code block stopped working recently and I don't
> know why:
>
> \defineXMLenvironment[body]
> {\bgroup
> \rm\setupwhitespace[none]
> \setupindenting[small,yes]
> \startcolumns[rule=on,n=2,tolerance=strict]
> {\noindenting} }
> {\stopcolumns
> \egroup}
>
> It just doesn't indent anything,
That's odd, because it looks fine to me.
I've created a test file with this appended to your definition:
\defineXMLenvironment[p]{}{\par}
\starttext
\startXMLdata
<body>
<p>text</p>
<p>text</p>
<p>text</p>
</body>
\stopXMLdata
\stoptext
And it nicely indents the second and third paragraph.
I would use
\noindentation }
instead of
{\noindening} }
but both possibilities work out fine here.
Cheers, Taco
next prev parent reply other threads:[~2006-01-14 23:09 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-14 16:03 Christopher G D Tipper
2006-01-14 23:09 ` Taco Hoekwater [this message]
2006-01-15 12:54 ` Christopher G D Tipper
2006-01-15 18:07 ` Hans Hagen
2006-01-16 11:09 ` Taco Hoekwater
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=43C9849B.70909@elvenkind.com \
--to=taco@elvenkind.com \
--cc=ntg-context@ntg.nl \
/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).