added '\n' escaping of ID string in VTK header
This commit is contained in:
parent
f458f026db
commit
48ac3956ce
|
@ -65,7 +65,7 @@ def vtk_writeASCII_mesh(dim,res,data):
|
||||||
|
|
||||||
cmds = [\
|
cmds = [\
|
||||||
'# vtk DataFile Version 3.1',
|
'# vtk DataFile Version 3.1',
|
||||||
'powered by $Id$',
|
string.replace('powered by $Id$','\n','\\n')
|
||||||
'ASCII',
|
'ASCII',
|
||||||
'DATASET RECTILINEAR_GRID',
|
'DATASET RECTILINEAR_GRID',
|
||||||
'DIMENSIONS %i %i %i'%(res[0]+1,res[1]+1,res[2]+1),
|
'DIMENSIONS %i %i %i'%(res[0]+1,res[1]+1,res[2]+1),
|
||||||
|
|
Loading…
Reference in New Issue