News for hackers. Stuff that matters.
Re:I made a native Python module for MS Word docx by est on Wednesday December 30, 2009 @10:48AM (#1022563)
A quick hack for if you need .doc not .docx format: generate .rtf and rename it to .doc :)

PS, .eml and .mht are actually the same format.

Re:I made a native Python module for MS Word docx by stevenbedrick on Wednesday December 30, 2009 @01:07PM (#1022843)
An even worse hack, that unfortunately has worked really well for me in the past: generate a simple HTML file (em, b, u, ul/ol, etc.), rename it to .doc, and Word will open it without appearing to notice or comment. This saved my butt once when I discovered mid-project that the Textile library I was using couldn't generate RTF... I felt more than a little bit dirty, but it worked without a hitch.
Re:I made a native Python module for MS Word docx by pyre on Wednesday December 30, 2009 @09:12PM (#1023680)
> .eml and .mht are actually the same format.

.mht uses MIME/Base64 to store all of the HTML and external files together, but IIRC it's not exactly the same as an email because the headers are different/missing (i.e. I wouldn't make sense to have a To:/Reply-To:/Cc:/etc header)