Re: [Vala] Handling multiline strings

2013-06-10 Thread Satyajit Sahoo
Thanks. That was of great help. On 11 June 2013 00:09, Evan Nemerson wrote: > On Mon, 2013-06-10 at 18:22 +0530, Satyajit Sahoo wrote: > > Hi. I'm trying to write a multiline string into a file, > > > > e.g. > > > > string new = """Line 1 and %s > > > > Line 2 and %s > > > > Line 3 > > > > Line

Re: [Vala] Handling multiline strings

2013-06-10 Thread Evan Nemerson
On Mon, 2013-06-10 at 18:22 +0530, Satyajit Sahoo wrote: > Hi. I'm trying to write a multiline string into a file, > > e.g. > > string new = """Line 1 and %s > > Line 2 and %s > > Line 3 > > Line 4""".printf (var1, var2); > > The problem is, when I write it to the file, the lines from the 2nd

Re: [Vala] Handling multiline strings

2013-06-10 Thread Satyajit Sahoo
t; > From: Satyajit Sahoo > > Sender: "vala-list" > > Date: Mon, 10 Jun 2013 18:22:49 > > To: vala-list > > Subject: [Vala] Handling multiline strings > > > > Hi. I'm trying to write a multiline string into a file, > > > > e.g.

Re: [Vala] Handling multiline strings

2013-06-10 Thread Craig
s > > -Original Message- > From: Satyajit Sahoo > Sender: "vala-list" > Date: Mon, 10 Jun 2013 18:22:49 > To: vala-list > Subject: [Vala] Handling multiline strings > > Hi. I'm trying to write a multiline string into a file, > > e.g. > >

Re: [Vala] Handling multiline strings

2013-06-10 Thread Mario Daniel Ruiz Saavedra
ajit Sahoo Sender: "vala-list" Date: Mon, 10 Jun 2013 18:22:49 To: vala-list Subject: [Vala] Handling multiline strings Hi. I'm trying to write a multiline string into a file, e.g. string new = """Line 1 and %s Line 2 and %s Line 3 Line 4""".printf (va

[Vala] Handling multiline strings

2013-06-10 Thread Satyajit Sahoo
Hi. I'm trying to write a multiline string into a file, e.g. string new = """Line 1 and %s Line 2 and %s Line 3 Line 4""".printf (var1, var2); The problem is, when I write it to the file, the lines from the 2nd line, have tab characters preceding them. I want to keep the idention level of the