View Single Post
Old 03-15-2012, 01:43 PM   #51
ixtab
(offline)
ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.
 
ixtab's Avatar
 
Posts: 2,907
Karma: 6736094
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
Quote:
Originally Posted by alansplace View Post
I sure find it useful.

I've examined the output code in drmcheck and kindledrm for the purpose of modifying your version of drmcheck to not put a linefeed after each completed output. I cannot figure out what is causing the drmcheck to output a series of lines interspaced by a blank line (in order to use the command line loop we've been kicking around to create an ascii list). kindledrm's list creates a list w/o the extra linefeed, drmcheck includes a blank line every time it outputs the info of another file.

Do you see what needs to be done to alter that behavior?
Yupp

Remove the trailing newline at the "print" command. That should still be line 207. Simply delete the "\n" at the end of the double-quoted string. (I still don't understand why python appends newlines automatically, I consider that bad design, but... well, that's the way it seems to be).
ixtab is offline   Reply With Quote