Browse Source

inverted if-spaces logic

master
Jonathan Spratte 2 months ago
parent
commit
6f3786502a
1 changed files with 7 additions and 9 deletions
  1. 7
    9
      grabbox.dtx

+ 7
- 9
grabbox.dtx View File

@@ -313,7 +313,7 @@ and the derived files           grabbox.pdf and
313 313
 %    \end{macrocode}
314 314
 %
315 315
 %    \begin{macrocode}
316
-\@ifdefinable{\if@grabbox@spaces@}{\newif\if@grabbox@spaces@}
316
+\@ifdefinable{\if@grabbox@nospaces@}{\newif\if@grabbox@nospaces@}
317 317
 \@ifdefinable{\grabbox@def}
318 318
   {\long\def\grabbox@def#1#2#{\grabbox@def@a{}#1{#2}}}
319 319
 \@ifdefinable{\grabbox@ldef}
@@ -355,8 +355,8 @@ and the derived files           grabbox.pdf and
355 355
 \grabbox@def\grabbox
356 356
   {%
357 357
     \@ifstar
358
-      {\@grabbox@spaces@true\grabbox@a}
359
-      {\@grabbox@spaces@false\grabbox@a}%
358
+      {\@grabbox@nospaces@false\grabbox@a}
359
+      {\@grabbox@nospaces@true\grabbox@a}%
360 360
   }
361 361
 \grabbox@def\grabbox@a
362 362
   {%
@@ -373,8 +373,8 @@ and the derived files           grabbox.pdf and
373 373
 \grabbox@def\@grabbox
374 374
   {%
375 375
     \@ifstar
376
-      {\@grabbox@spaces@true\@grabbox@a}
377
-      {\@grabbox@spaces@false\@grabbox@a}%
376
+      {\@grabbox@nospaces@false\@grabbox@a}
377
+      {\@grabbox@nospaces@true\@grabbox@a}%
378 378
   }
379 379
 \grabbox@ldef\@grabbox@a#1#2#3#4#5%
380 380
   {%
@@ -389,15 +389,13 @@ and the derived files           grabbox.pdf and
389 389
   {%
390 390
     \grabbox@into@prepre
391 391
     \bgroup
392
-    \if@grabbox@spaces@
393
-    \else
392
+    \if@grabbox@nospaces@
394 393
       \aftergroup\grabbox@unskip@space
395 394
     \fi
396 395
     \grabbox@set@color
397 396
     \aftergroup\grabbox@after
398 397
     \grabbox@into@pre
399
-    \if@grabbox@spaces@
400
-    \else
398
+    \if@grabbox@nospaces@
401 399
       \ignorespaces
402 400
     \fi
403 401
   }

Loading…
Cancel
Save