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}

Wolfgang
_______________________________________________
dev-context mailing list
dev-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/dev-context

Reply via email to