From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/112042 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Hans van der Meer Newsgroups: gmane.comp.tex.context Subject: Re: whiteline before xmldisplayverbatim Date: Mon, 5 Jul 2021 19:50:39 +0200 Message-ID: References: <432C40E9-911B-4896-B7CF-F5896ACF5A34@ziggo.nl> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.7\)) Content-Type: multipart/mixed; boundary="===============1079204853066416008==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22752"; mail-complaints-to="usenet@ciao.gmane.io" To: NTG ConTeXt Original-X-From: ntg-context-bounces@ntg.nl Mon Jul 05 19:55:41 2021 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m0Son-0005mc-2M for gctc-ntg-context-518@m.gmane-mx.org; Mon, 05 Jul 2021 19:55:41 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 9DA34285772; Mon, 5 Jul 2021 19:51:03 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WDoEdVFPareY; Mon, 5 Jul 2021 19:50:59 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id E6058285787; Mon, 5 Jul 2021 19:50:56 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 2E6E6285772 for ; Mon, 5 Jul 2021 19:50:55 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id JprEUBEDi5wE for ; Mon, 5 Jul 2021 19:50:52 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=212.54.42.166; helo=smtpq3.tb.mail.iss.as9143.net; envelope-from=havdmeer@ziggo.nl; receiver= Original-Received: from smtpq3.tb.mail.iss.as9143.net (smtpq3.tb.mail.iss.as9143.net [212.54.42.166]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 13D42285785 for ; Mon, 5 Jul 2021 19:50:40 +0200 (CEST) Original-Received: from [212.54.42.105] (helo=smtp1.tb.mail.iss.as9143.net) by smtpq3.tb.mail.iss.as9143.net with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m0Sjv-00016V-V2 for ntg-context@ntg.nl; Mon, 05 Jul 2021 19:50:39 +0200 Original-Received: from [192.168.178.20] ([84.106.134.200]) by smtp1.tb.mail.iss.as9143.net with ESMTPA id 0SjvmENb2JeOE0SjvmvGxm; Mon, 05 Jul 2021 19:50:39 +0200 X-Env-Mailfrom: havdmeer@ziggo.nl X-Env-Rcptto: ntg-context@ntg.nl X-SourceIP: 84.106.134.200 X-CNFS-Analysis: v=2.4 cv=aNOTFZxm c=1 sm=1 tr=0 ts=60e3466f cx=a_exe a=wCstmS+ZHA3zSJXjQC+ubA==:117 a=wCstmS+ZHA3zSJXjQC+ubA==:17 a=TRntDIGCAAAA:8 a=MiNTnEJAAAAA:8 a=YEMqx4UAAAAA:8 a=ACQCx6kCAAAA:8 a=xtERp6CFAAAA:8 a=a3nu-2BBAAAA:8 a=rsLCO41godMZ6gj0YpsA:9 a=CjuIK1q_8ugA:10 a=yGJZtJ-ob6y0HNQXNnkA:9 a=6vjRTEPQTVRXryxd:21 a=_W_S_7VecoQA:10 a=LQ5nR6AVOmv-rk69IiyQ:22 a=LmrbSfiT3hecnSZifb5M:22 a=V0662LiR8DSfwiDagK97:22 a=Sab0UneHBzlWrQDlOuxD:22 a=ekCXXmE-vB8RPiJ3MEZb:22 X-Authenticated-Sender: havdmeer@ziggo.nl DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ziggo.nl; s=202002corplgsmtpnl; t=1625507439; bh=61ZRHEz6FXNNZV3NhpByEueBLyqHpseQH2sRdVHIGYo=; h=From:Subject:Date:References:To:In-Reply-To; b=dBigc+CHo3Xjf8domTid1hYHnPWE5Gr+drpX7XFnYCqAlDf6NckQRcavmbZkthg4z uTMvnrkJ6nyd14VO/78PhmU89IRsvfBf25Xdyjvh7IZmiBLP5vjuam4JSm4KVbJSY2 9GjRecWNNtJs53tcRXYBCN3iRthQR1PriiO7fYcGFv3FvHOTwA/rG1i2nQXZr5mDha +ft54RTuycSJAkfdIBPv34u3RrJE9Tt7TIpxBqDq2rcuu1tQzSdHuhvqrfVZyS2Suh YzHiwJSJg2AxWpXbOFpKf60pIxhMmF8wKuuNSrjr2Wo8P5JvQIq0Ire3/+ee7LOImw 4xgw3AE65mZQA== In-Reply-To: <432C40E9-911B-4896-B7CF-F5896ACF5A34@ziggo.nl> X-Mailer: Apple Mail (2.3608.120.23.2.7) X-CMAE-Envelope: MS4xfE72qz9obFa2Gf275ohTgYsLtIDzEOqabrnXbqmbiP/QhRiPzsUWJkljE0f/2ikWAj6/PKwhw0mfG6WYKEZd/tMaeTb4ccrHR+9TYmq3Y1ichupzulKX CG0HjCdI5f02Fn0eKo96l5SM66a1KQEshDyhgUl4/dzqnyoYmO8/OA9YjMGs/O6RRmENIapRd/GvHw== X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.io gmane.comp.tex.context:112042 Archived-At: --===============1079204853066416008== Content-Type: multipart/alternative; boundary="Apple-Mail=_3A59A22C-E769-4B77-82A0-1F46EC88443B" --Apple-Mail=_3A59A22C-E769-4B77-82A0-1F46EC88443B Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Found the problem: should not be preceded by \crlf but by \par. dr. Hans van der Meer > On 5 Jul 2021, at 19:21, Hans van der Meer wrote: >=20 > I cannot get rid of the whiteline that \xmldisplayverbatim generates = before its output. Changing to other \xmldisplay macro's did not change = this. How to get rid of the whitespace? > MWE: > \startxmlsetups hvdm:docs:texcode > abc\crlf > \xmlstripnolines{#1}{.}% <- with or without: no change > \xmldisplayverbatim{#1} > \stopxmlsetups >=20 > result, see the empty lines between abc and the \new.. >=20 > >=20 > dr. Hans van der Meer >=20 >=20 > = __________________________________________________________________________= _________ > If your question is of interest to others as well, please add an entry = to the Wiki! >=20 > maillist : ntg-context@ntg.nl / = http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > = __________________________________________________________________________= _________ --Apple-Mail=_3A59A22C-E769-4B77-82A0-1F46EC88443B Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii Found= the problem: should not be preceded by \crlf but by \par.
dr. Hans van der Meer


On 5 Jul 2021, at 19:21, Hans van der Meer <havdmeer@ziggo.nl> = wrote:

I cannot get rid of = the whiteline that \xmldisplayverbatim generates before its output. = Changing to other \xmldisplay macro's did not change this. How to get = rid of the whitespace?
MWE:
\startxmlsetups = hvdm:docs:texcode
= abc\crlf
= \xmlstripnolines{#1}{.}% <- with or without: no = change
= \xmldisplayverbatim{#1}
\stopxmlsetups

result, see the empty lines between abc = and the \new..

<Scree= nshot 2021-07-05 at 19.19.12.png>

dr. = Hans van der Meer


_____________________________________________= ______________________________________
If your question is = of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : = https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
_______________________________________________________________= ____________________

= --Apple-Mail=_3A59A22C-E769-4B77-82A0-1F46EC88443B-- --===============1079204853066416008== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============1079204853066416008==--