Revision: 6904
          http://skim-app.svn.sourceforge.net/skim-app/?rev=6904&view=rev
Author:   hofman
Date:     2010-11-28 12:29:39 +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 10:50:11 UTC (rev 6903)
+++ trunk/SKFormatCommand.m     2010-11-28 12:29:39 UTC (rev 6904)
@@ -61,7 +61,7 @@
         attrString = template;
     else if ([template isKindOfClass:[NSURL class]] == NO)
                [self setScriptErrorNumber:NSArgumentsWrongScriptError]; 
-    else if ([[NSSet setWithObjects:@"rtf", @"doc", @"docx", @"odt", @"rtfd", 
nil] containsObject:[[[template path] pathExtension] lowercaseString]])
+    else if ([[NSSet setWithObjects:@"rtf", @"doc", @"docx", @"odt", 
@"webarchive", @"rtfd", nil] containsObject:[[[template path] pathExtension] 
lowercaseString]])
         attrString = [[[NSAttributedString alloc] initWithURL:template 
documentAttributes:&docAttrs] autorelease];
     else
         string = [NSString stringWithContentsOfURL:template 
encoding:NSUTF8StringEncoding 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