aboutsummaryrefslogtreecommitdiffstats
path: root/lib/attachment_to_html/adapters/rtf.rb
Commit message (Collapse)AuthorAgeLines
* Handle converting empty RTF fileshotfix/0.18.0.3Gareth Rees2014-06-06-0/+2
| | | | Fixes https://github.com/mysociety/alaveteli/issues/1563
* Simpler AttachmentToHTML::Adapters::RTF interfaceGareth Rees2014-04-07-46/+16
| | | | | | | | | | | TODO: We really should be testing the full output of RTF#body, but we currently want to remain consistent with Adapters::PDF as many methods are shared between the Adapters. A more correct spec might be: expected = %Q(<font size=3><font color="#000000">thisisthebody</font></font>) adapter.body.should == expected
* Work around a bug in unrtfGareth Rees2014-04-01-1/+12
|
* Get attachment body outside of chdirGareth Rees2014-04-01-12/+18
|
* Add AttachmentToHTML libraryGareth Rees2014-03-28-0/+120
Extracts the attachment processing from FoiAttachment#body_to_html AttachmentToHTML contains adapters which convert - text/plain - application/pdf - application/rtf Results are returned as an AttachmentHTML::HTML instance which contains the raw HTML and other metadata about the conversion.