Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'output': 0.04; 'lines,': 0.05; 'line:': 0.07; 'subject:How': 0.09; 'deletes': 0.09; 'editor.': 0.09; 'macro.': 0.09; 'snippet': 0.09; 'subject:script': 0.09; 'wraps': 0.09; 'bug': 0.10; 'kurt': 0.11; ':-)': 0.13; 'ah,': 0.16; 'chris,': 0.16; 'commented': 0.16; 'excellent!': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'unwrap': 0.16; 'mon,': 0.16; 'wrote:': 0.17; 'certainly': 0.17; 'jan': 0.18; '>>>': 0.18; '(or': 0.18; 'help.': 0.22; 'work.': 0.23; 'header:In-Reply-To:1': 0.25; 'am,': 0.27; 'realize': 0.27; 'found.': 0.27; 'message-id:@mail.gmail.com': 0.27; "doesn't": 0.28; 'fixed': 0.28; 'received:209.85.212': 0.28; 'chris': 0.28; "i'm": 0.29; 'that.': 0.30; 'code': 0.31; 'that!': 0.33; 'version:': 0.33; 'to:addr:python-list': 0.33; 'version': 0.34; 'received:google.com': 0.34; 'text': 0.34; 'thanks': 0.34; 'subject:?': 0.35; 'received:209.85': 0.35; 'but': 0.36; "i'll": 0.36; 'should': 0.36; 'why': 0.37; 'item': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'your': 0.60; 'remove': 0.61; "you'll": 0.62; 'unnecessary': 0.65; 'applying': 0.69; 'subject:this': 0.84; '2013': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=cCB0zDmYl6U0Ty1cpYWTYJ213rur9Ct7tyqwAeFB9d4=; b=LPtgz+MjHiFuL11nRJij6E07vAiRyoZQTPOpMjQolbjvS90H8SCKrzi8BiUJZoGgAA 13Su2nY8bP0Ioyr1eY9jAv3dfMfGHmmS5ru1qiH1HL6V9zRW3oxrWhg6/qdgABj8d0jK T3k0crJ1e6dwfoc/omb+8DB6HJv9/miKIS/yvoxLNPWYufpwd7SrHYt3NbrP0JT1oIXM ZWd2JzGOw36l2LTewsWwu80QkOSxpDKq2DYDTwEbS9IG5nM2IuERZxxQHr3nm+jS4WAW 2DJgkT+2MtcIVfkUuZl3G4oS4vB72a/m1YNwyijtlxf+lPlDEd8fmUSxUdSO3+JgmctD Clbg== MIME-Version: 1.0 In-Reply-To: <50e98a77$0$294$14726298@news.sunsite.dk> References: <50e97123$0$294$14726298@news.sunsite.dk> <50e97d82$0$294$14726298@news.sunsite.dk> <50e9844f$0$294$14726298@news.sunsite.dk> <50e98a77$0$294$14726298@news.sunsite.dk> Date: Mon, 7 Jan 2013 01:41:32 +1100 Subject: Re: How to modify this script? From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 39 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1357483295 news.xs4all.nl 6902 [2001:888:2000:d::a6]:59967 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:36258 On Mon, Jan 7, 2013 at 1:30 AM, Kurt Hansen wrote: > Den 06/01/13 15.20, Chris Angelico wrote: > >> On Mon, Jan 7, 2013 at 1:03 AM, Kurt Hansen wrote: >>> >>> I'm sorry to bother you, Chris, but applying the snippet with your code >>> in >>> Gedit still just deletes the marked, tab-separated text in the editor. > > >> Ah, whoops. That would be because I had a bug in the code (that's why >> I commented that it was untested). Sorry about that! Here's a fixed >> version: >> > [cut]> > >> Note that it's a single line: >> >> output += '' + item + ' ' >> >> If your newsreader (or my poster) wraps it, you'll need to unwrap that >> line, otherwise you'll get an IndentError. > > > Ahhh, I did'nt realize that. Now it works :-) > >> That version should work. > > > It certainly does. I'll keep it and use it until at better solution is > found. In the meantime I can just remove any unnecessary "colspan="1" with a > macro. > > Thanks for your help. Excellent! You'll find that Subimal's solution doesn't have those colspan="1" lines, so take your pick as to which way you want to go. ChrisA