]> git.vpit.fr Git - perl/modules/LaTeX-TikZ.git/blobdiff - lib/LaTeX/TikZ/Set/Op.pm
Stop drawing with the newline
[perl/modules/LaTeX-TikZ.git] / lib / LaTeX / TikZ / Set / Op.pm
index ffd79a5633256fe4b801e4556e28f70d535cfbcd..c7f7e1b96f9dbd5320beaa54d47b5000987175dd 100644 (file)
@@ -15,6 +15,8 @@ Version 0.01
 
 our $VERSION = '0.01';
 
+use LaTeX::TikZ::Scope;
+
 use Any::Moose 'Role';
 
 requires qw(
@@ -24,7 +26,8 @@ requires qw(
 sub draw {
  my $set = shift;
 
- "\\draw " . $set->path(@_) . " ;\n";
+ LaTeX::TikZ::Scope->new
+                   ->body([ "\\draw " . $set->path(@_) . ' ;' ]);
 }
 
 =head1 AUTHOR