I tried to use this method in my code like this:-<br>
---------------------------------------------------------------------------------<br>
#!/usr/bin/python                                                                                                                                 
<br>
<br>
def print_sql():<br>
    sql = '''aaaaaaaaaaaaaaaaaaaaaaa<br>
    bbbbbbbbbbbbbbbbbbbbbbb'''.replace("\n","")<br>
    print sql<br>
<br>
print_sql()<br>
<br>
---------------------------------------------------------------------------------<br>
<br>
the ouput of this is aaaaaaaaaaaaaaaa<space><tab>bbbb......<br>
<br>
I can always do this :-<br>
---------------------------------------------------------------------------------<br>
#!/usr/bin/python                                                                                                                                 
<br>

<br>

def print_sql():<br>

    sql = '''aaaaaaaaaaaaaaaaaaaaaaa<br>
bbbbbbbbbbbbbbbbbbbbbbb'''.replace("\n","")<br>

    print sql<br>

<br>

print_sql()<br>

<br>

---------------------------------------------------------------------------------<br>
<br>but it looks ugly<br>
<br>
<br><div><span class="gmail_quote">On 11/22/05, <b class="gmail_sendername">Mohammad Jeffry</b> <<a href="mailto:linuxlah@gmail.com">linuxlah@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br><div><span class="q"><span class="gmail_quote">On 11/22/05, <b class="gmail_sendername">Paul McGuire</b> <ptmcg@austin.rr._bogus_.com> wrote:</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Or for a large literal string:<br><br>"""<br>lots of text hundreds of characters long
<br>more text on another line but we really don't want any line breaks<br>in our final string<br>so we replace newlines in this multiline string<br>with an empty string thus<br>""".replace('\n','')<br><br>
-- Paul
</blockquote></span><div><br>
<br>
I love your method. The only drawbacks for this method is I can't tell
whether there is blank space at the end of each lines. For EG: the
above string might be<br>
<br>
lots of text hundreds of characters longmore text on another.....<br>                                                       
^<br>
or<br>
<br>
lots of text hundreds of characters long more text on another.....<br>
                                                       
^ <br>
<br>
<br>
</div><br></div><br clear="all"><br>-- <br>And whoever does an atom's weight of evil will see it.

</blockquote></div><br><br clear="all"><br>-- <br>And whoever does an atom's weight of evil will see it.