Revision: 22208
          http://sourceforge.net/p/bibdesk/svn/22208
Author:   hofman
Date:     2018-05-03 14:39:10 +0000 (Thu, 03 May 2018)
Log Message:
-----------
Use empty string to edit when editing empty string as raw bibtex, so user can 
immediately input a macro

Modified Paths:
--------------
    trunk/bibdesk/BDSKComplexStringFormatter.m

Modified: trunk/bibdesk/BDSKComplexStringFormatter.m
===================================================================
--- trunk/bibdesk/BDSKComplexStringFormatter.m  2018-05-03 06:31:03 UTC (rev 
22207)
+++ trunk/bibdesk/BDSKComplexStringFormatter.m  2018-05-03 14:39:10 UTC (rev 
22208)
@@ -73,7 +73,7 @@
                if ([delegate 
respondsToSelector:@selector(formatter:shouldEditAsComplexString:)])
                        editAsComplexString = [delegate formatter:self 
shouldEditAsComplexString:obj];
        }
-       return editAsComplexString ? [string stringAsBibTeXString] : string;
+    return editAsComplexString && [NSString isEmptyAsComplexString:string] == 
NO ? [string stringAsBibTeXString] : string;
 }
 
 - (NSAttributedString *)attributedStringForObjectValue:(id)obj 
withDefaultAttributes:(NSDictionary *)defaultAttrs{

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


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Bibdesk-commit mailing list
Bibdesk-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to