summaryrefslogtreecommitdiff
path: root/tex/context/base/spac-par.mkiv
diff options
context:
space:
mode:
authorMarius <mariausol@gmail.com>2011-11-08 16:20:15 +0200
committerMarius <mariausol@gmail.com>2011-11-08 16:20:15 +0200
commit40471dd95ca8782212c5d63ee5f2085b105ed7e8 (patch)
tree5fed44546f9fff4ea69168cf16e839b9d7c83e6c /tex/context/base/spac-par.mkiv
parente39e55fe08653b79084655b91e468940b9495a59 (diff)
downloadcontext-40471dd95ca8782212c5d63ee5f2085b105ed7e8.tar.gz
beta 2011.11.08 15:20
Diffstat (limited to 'tex/context/base/spac-par.mkiv')
-rw-r--r--tex/context/base/spac-par.mkiv25
1 files changed, 11 insertions, 14 deletions
diff --git a/tex/context/base/spac-par.mkiv b/tex/context/base/spac-par.mkiv
index 433ea85c8..711a2525d 100644
--- a/tex/context/base/spac-par.mkiv
+++ b/tex/context/base/spac-par.mkiv
@@ -23,28 +23,25 @@
%D inside the group are forgotten afterwards. (I must
%D not forget its existence).
-\global\let\carriedoverpar\relax
-
-\def\carryoverpar#1%
- {\normalexpanded % \scratchtoks{#1}%
- {\noexpand#1% \the\scratchtoks
+\def\carryoverpar#1% #1 can be \endgroup or \egroup or ...
+ {\normalexpanded
+ {\noexpand#1%
\hangindent\the\hangindent
\hangafter \the\hangafter
\parskip \the\parskip
\leftskip \the\leftskip
\rightskip \the\rightskip}}
-\newconditional \parbasedattributes
+\unexpanded\def\pushparagraphproperties
+ {\edef\currentparagraphproperties{\carryoverpar\relax}%
+ \pushmacro\currentparagraphproperties}
-\def\finishparbasedattributes
- {\ifconditional\parbasedattributes
- \setfalse\parbasedattributes
- \par
- \fi}
+\unexpanded\def\popparagraphproperties
+ {\popmacro\currentparagraphproperties
+ \currentparagraphproperties}
-\def\dostopparbasedattributes
- {\settrue\parbasedattributes
- \dostopattributes}
+\unexpanded\def\flushparagraphproperties
+ {\popmacro\currentparagraphproperties}
% beware, changing this will break some code (like pos/backgrounds)