Browse Source

unskip trailing space works again

tags/1.2
Jonathan Spratte 2 years ago
parent
commit
731be0f895
2 changed files with 8 additions and 4 deletions
  1. 8
    4
      grabbox.dtx
  2. BIN
      grabbox.pdf

+ 8
- 4
grabbox.dtx View File

@@ -365,9 +365,17 @@ and the derived files           grabbox.pdf and
365 365
       {\gdef\grabbox@set@color{}}
366 366
       {\global\let\grabbox@set@color\set@color}%
367 367
   }%
368
+\newcommand*\grabbox@unskip@space
369
+  {%
370
+    \ifhmode\unskip\fi
371
+  }
368 372
 \grabbox@def\grabbox@intermediate
369 373
   {%
370 374
     \bgroup
375
+    \if@grabbox@spaces@
376
+    \else
377
+      \aftergroup\grabbox@unskip@space
378
+    \fi
371 379
     \grabbox@set@color
372 380
     \aftergroup\grabbox@after
373 381
     \grabbox@into@pre
@@ -388,10 +396,6 @@ and the derived files           grabbox.pdf and
388 396
   }
389 397
 \grabbox@def\grabbox@after
390 398
   {%
391
-    \if@grabbox@spaces@
392
-    \else
393
-      \ifhmode\unskip\fi
394
-    \fi
395 399
     \grabbox@into@post
396 400
     \endgraf
397 401
     \grabbox@after@aux@a

BIN
grabbox.pdf View File


Loading…
Cancel
Save