Figured it out...it always in the end seems so silly and
simple...particularly in this case:

            file.write('%s\r\n' % item_title)
            file.write('%s\r\n\r\n' % itemAttributes)
            file.write('%s\r\n' % item_body)

Andre

On Sat, 22 Dec 2007 00:53:01 -0500, "Andre Mueninghoff"
<[EMAIL PROTECTED]> said:
> On Fri, 30 Nov 2007 11:12:17 -0800, "Jeffrey Harris"
> <[EMAIL PROTECTED]> said:
> You might consider:
> > 
> > import codecs
> > file = codecs.open(filename, "a", "utf-8")
> > 
> > so you don't have to convert your unicode string-by-string.
> > 
> Hi Jeffrey,
> 
> Okay, I'm stumped...Q. How does one force returns (carriage return+line
> feed) when using this shortcut for codecs?
> 
> This doesn't seem to work for me:
> 
>             file.write('-------------------------------------------\n')
>             file.write('%s\n' % item_title)
>             line2 = string_triageStatus.upper() + "  " + string_date + "
>              " + item_dateSource + "\n"
>             file.write('%s\n' % line2)
>             file.write('%s\n\n' % item_body)
> 
> I get a "smoosh" (technical term) in my text file with no returns/line
> feeds.
> 
> Thanks much, Andre
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> 
> Open Source Applications Foundation "chandler-dev" mailing list
> http://lists.osafoundation.org/mailman/listinfo/chandler-dev
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

Open Source Applications Foundation "chandler-dev" mailing list
http://lists.osafoundation.org/mailman/listinfo/chandler-dev

Reply via email to