On 7/23/2014 3:54 PM, Wolfgang Schuster wrote:
Hi,
I guess the following changes are useful to ensure the spaces at the begin and end of a framed environment are removed.
A minimal example to show the problem:
\starttext L\startframed[offset=none] M \stopframed R \stoptext
pack-rul.mkiv:
\def\pack_framed_start_framed[#1]% {\bgroup \advance\c_pack_framed_nesting\plusone \expandafter\let\csname\??framed>\the\c_pack_framed_nesting:\s!parent\endcsname\??framed \iffirstargument\secondargumenttrue\fi % dirty trick \edef\currentframed{>\the\c_pack_framed_nesting}% \pack_framed_initialize \pack_framed_process_framed[#1]% can be inlined - \bgroup} + \bgroup\ignorespaces}
% till here
-\let\stopframed\egroup +\unexpanded\def\stopframed + {\removeunwantedspaces\egroup}
ok ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------