[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Orgmode] OT: Python help
From: |
Puneeth |
Subject: |
Re: [Orgmode] OT: Python help |
Date: |
Tue, 20 Jul 2010 16:58:54 +0530 |
On Tue, Jul 20, 2010 at 4:50 PM, Puneeth <address@hidden> wrote:
> On Tue, Jul 20, 2010 at 4:43 PM, Carsten Dominik <address@hidden> 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
- [Orgmode] OT: Python help, Carsten Dominik, 2010/07/20
- Re: [Orgmode] OT: Python help, Giovanni Ridolfi, 2010/07/20
- Re: [Orgmode] OT: Python help, Carsten Dominik, 2010/07/20
- Re: [Orgmode] OT: Python help, Puneeth, 2010/07/20
- Re: [Orgmode] OT: Python help, Carsten Dominik, 2010/07/20
- Re: [Orgmode] OT: Python help,
Puneeth <=
- Re: [Orgmode] OT: Python help, Peter Westlake, 2010/07/20
- Re: [Orgmode] OT: Python help, Carsten Dominik, 2010/07/20
- Re: [Orgmode] OT: Python help, Xiao-Yong Jin, 2010/07/20
- Re: [Orgmode] OT: Python help, Giovanni Ridolfi, 2010/07/20