From 139df1037ef019c4fb1d87b0c192159160f6a99b Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Fri, 28 Jan 2011 01:54:47 +0000
Subject: ydoc (27jan11)

git-svn-id: svn://tug.org/texlive/trunk@21202 c570f23f-e606-0410-a88d-b1316a301751
---
 Master/texmf-dist/source/latex/ydoc/ydoc.dtx | 25 +++++++++++++++++++++----
 1 file changed, 21 insertions(+), 4 deletions(-)

(limited to 'Master/texmf-dist/source/latex/ydoc/ydoc.dtx')

diff --git a/Master/texmf-dist/source/latex/ydoc/ydoc.dtx b/Master/texmf-dist/source/latex/ydoc/ydoc.dtx
index be3645188bb..b4cd14a106c 100644
--- a/Master/texmf-dist/source/latex/ydoc/ydoc.dtx
+++ b/Master/texmf-dist/source/latex/ydoc/ydoc.dtx
@@ -35,7 +35,7 @@
 %<expl>    [ydoc-expl]
 %<doc>     [ydoc-doc]
 %<*driver|class|package|code|desc|expl|doc>
-    {$Id: ydoc.dtx 2035 2011-01-09 17:22:24Z martin $}
+    {$Id: ydoc.dtx 2073 2011-01-26 11:25:50Z martin $}
     [v0.4alpha]
 %</driver|class|package|code|desc|expl|doc>
 %<class>   [ydoc class: document LaTeX class and packages]
@@ -74,7 +74,7 @@
 %</driver>
 % \fi
 %
-% \CheckSum{1459}
+% \CheckSum{1488}
 %
 % \CharacterTable
 %  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
@@ -1275,8 +1275,24 @@
 %
 % \begin{macro}{\read@Macro@marg}
 %    \begin{macrocode}
-\def\read@Macro@marg#1{%
-  \@marg{#1}\read@Macro@arg
+\def\read@Macro@marg{%
+    \begingroup
+    \afterassignment\read@Macro@marg@
+    \let\@let@token=%
+}
+\def\read@Macro@marg@{%
+    \setbox\@tempboxa\hbox\bgroup
+        \color@setgroup\bgroup
+        \aftergroup\color@endgroup
+        \aftergroup\egroup
+        \aftergroup\read@Macro@marg@@
+        \let\end@Macro@args\empty%
+        \read@Macro@arg
+}
+\def\read@Macro@marg@@{%
+  \@marg{\usebox\@tempboxa}%
+  \endgroup
+  \read@Macro@arg
 }
 %    \end{macrocode}
 % \end{macro}
@@ -1348,6 +1364,7 @@
   \begingroup
   \let\do\@makeother
   \dospecials
+  \obeyspaces
   \read@Macro@verb@
 }
 %    \end{macrocode}
-- 
cgit v1.2.3

