Revision: 6905
          http://skim-app.svn.sourceforge.net/skim-app/?rev=6905&view=rev
Author:   hofman
Date:     2010-11-28 12:36:07 +0000 (Sun, 28 Nov 2010)

Log Message:
-----------
support webarchive template for rich text format script command

Modified Paths:
--------------
    trunk/SKFormatCommand.m

Modified: trunk/SKFormatCommand.m
===================================================================
--- trunk/SKFormatCommand.m     2010-11-28 12:29:39 UTC (rev 6904)
+++ trunk/SKFormatCommand.m     2010-11-28 12:36:07 UTC (rev 6905)
@@ -92,6 +92,8 @@
                         docType = NSOfficeOpenXMLTextDocumentType;
                     else if ([ext isEqualToString:@"odt"])
                         docType = NSOpenDocumentTextDocumentType;
+                    else if ([ext isEqualToString:@"webarchive"])
+                        docType = NSWebArchiveTextDocumentType;
                     if (docType && [docType 
isEqualToString:NSRTFTextDocumentType] == NO) {
                         [mutableDocAttrs setObject:docType 
forKey:NSDocumentTypeDocumentAttribute];
                         data = [attrText dataFromRange:NSMakeRange(0, 
[attrText length]) documentAttributes:mutableDocAttrs error:NULL];


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to