added '\n' escaping of ID string in VTK header

This commit is contained in:
Philip Eisenlohr 2011-09-05 13:38:10 +00:00
parent f458f026db
commit 48ac3956ce
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ def vtk_writeASCII_mesh(dim,res,data):
cmds = [\
'# vtk DataFile Version 3.1',
'powered by $Id$',
string.replace('powered by $Id$','\n','\\n')
'ASCII',
'DATASET RECTILINEAR_GRID',
'DIMENSIONS %i %i %i'%(res[0]+1,res[1]+1,res[2]+1),