changeset 8431:12d917e81b91 octave-forge

geometry package: demo indetation fix to look nice on html
author carandraug
date Tue, 27 Sep 2011 14:13:05 +0000
parents f34d722251c9
children 62f5720e7b29
files main/geometry/inst/data2geo.m main/geometry/inst/svgload.m main/geometry/inst/svgnormalize.m
diffstat 3 files changed, 8 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/main/geometry/inst/data2geo.m	Tue Sep 27 14:02:10 2011 +0000
+++ b/main/geometry/inst/data2geo.m	Tue Sep 27 14:13:05 2011 +0000
@@ -79,6 +79,6 @@
 end
 
 %!demo
-%! points = [0 0 0; 0.1 0 0; 0.1 .3 0; 0 0.3 0];
+%! points  = [0 0 0; 0.1 0 0; 0.1 .3 0; 0 0.3 0];
 %! strFile = data2geo(points,0.009);
 %! disp(strFile)
--- a/main/geometry/inst/svgload.m	Tue Sep 27 14:02:10 2011 +0000
+++ b/main/geometry/inst/svgload.m	Tue Sep 27 14:13:05 2011 +0000
@@ -50,12 +50,12 @@
 end
 
 %!demo
-%! file = 'tmp__.svg';
-%! fid = fopen (file,'w');
+%! file    = 'tmp__.svg';
+%! fid     = fopen (file,'w');
 %! svgfile = '<html><body><svg xmlns="http://www.w3.org/2000/svg" version="1.1" height="250" width="250"><path d="M150,0 75,200 225,200 Z" /></svg></body></html>';
 %! fprintf (fid,"%s\n",svgfile);
 %! fclose (fid);
-%! SVG = svgload (file);
+%! SVG     = svgload (file);
 %! SVG
 %! plot([SVG.path.coord(:,1); SVG.path.coord(1,1)], ...
 %!      [SVG.path.coord(:,2); SVG.path.coord(1,2)]);
--- a/main/geometry/inst/svgnormalize.m	Tue Sep 27 14:02:10 2011 +0000
+++ b/main/geometry/inst/svgnormalize.m	Tue Sep 27 14:13:05 2011 +0000
@@ -55,13 +55,13 @@
 end
 
 %!demo
-%! file = 'tmp__.svg';
-%! fid = fopen (file,'w');
+%! file    = 'tmp__.svg';
+%! fid     = fopen (file,'w');
 %! svgfile = '<html><body><svg xmlns="http://www.w3.org/2000/svg" version="1.1" height="250" width="250"><path d="M150,0 75,200 225,200 Z" /></svg></body></html>';
 %! fprintf (fid,"%s\n",svgfile);
 %! fclose (fid);
-%! SVG = svgload (file);
-%! SVGn = svgnormalize (SVG);
+%! SVG     = svgload (file);
+%! SVGn    = svgnormalize (SVG);
 %! SVGn
 %! plot([SVGn.path.coord(:,1); SVGn.path.coord(1,1)], ...
 %!      [SVGn.path.coord(:,2); SVGn.path.coord(1,2)]);