From mboxrd@z Thu Jan 1 00:00:00 1970 From: Puneeth Subject: Re: OT: Python help Date: Tue, 20 Jul 2010 16:58:54 +0530 Message-ID: References: <97ED60B0-D01C-47DB-9B5E-10F1B39E3892@uva.nl> <83vd8a1kkv.fsf@yahoo.it> <606EFD47-1329-43F8-8496-1A0B0A2390E9@uva.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from [140.186.70.92] (port=36309 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ObB0e-0004dm-T2 for emacs-orgmode@gnu.org; Tue, 20 Jul 2010 07:29:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1ObB0d-00041y-LK for emacs-orgmode@gnu.org; Tue, 20 Jul 2010 07:29:16 -0400 Received: from mail-pv0-f169.google.com ([74.125.83.169]:63957) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ObB0d-00041n-FQ for emacs-orgmode@gnu.org; Tue, 20 Jul 2010 07:29:15 -0400 Received: by pvc30 with SMTP id 30so5152971pvc.0 for ; Tue, 20 Jul 2010 04:29:14 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Carsten Dominik Cc: emacs-org list On Tue, Jul 20, 2010 at 4:50 PM, Puneeth wrote: > On Tue, Jul 20, 2010 at 4:43 PM, Carsten Dominik wrote: >> Please show me the full line of code, I am currently editing a python script >> without any knowledge of python... > > my_string = "Hello\nWorld" > my_new_string = my_string.replace("\n", "\n> ") Sorry, this code (obviously) doesn't prepend ">" to the first line Add this line to do that. my_new_string = "> " + my_new_string > HTH, > Puneeth > -- Puneeth