Re: next line, new line
rasdj_at_frontiernet.net
Date: 01/31/05
- Next message: Daniel Bickett: "Re: gmail access with python!"
- Previous message: x2164_at_mailcity.com: "Re: test_socket.py failure"
- In reply to: Jeremy Bowers: "Re: next line, new line"
- Next in thread: Jeremy Bowers: "Re: next line, new line"
- Reply: Jeremy Bowers: "Re: next line, new line"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 30 Jan 2005 20:21:49 -0800
Thanks Jeremy, something like this would work:
try:
lines = [ line.replace(",\n;", ")\n;") for line in input ]
If I could figgure out how to:
IF ':' in line
READ next line in
lines = [ line.replace(",\n;", ")\n;") for line in input ]
output.write(str.join('', lines))
because there are lots of "comma newline" but the only ones I want are
the ones that follow the semicolon.
RasDJ
- Next message: Daniel Bickett: "Re: gmail access with python!"
- Previous message: x2164_at_mailcity.com: "Re: test_socket.py failure"
- In reply to: Jeremy Bowers: "Re: next line, new line"
- Next in thread: Jeremy Bowers: "Re: next line, new line"
- Reply: Jeremy Bowers: "Re: next line, new line"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]