Revision: 28898
          http://sourceforge.net/p/bibdesk/svn/28898
Author:   hofman
Date:     2024-05-13 15:51:02 +0000 (Mon, 13 May 2024)
Log Message:
-----------
Don't remove empty collection tag, it can affect removal of newlines and use of 
fields

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

Modified: trunk/bibdesk/BDSKTemplateParser.m
===================================================================
--- trunk/bibdesk/BDSKTemplateParser.m  2024-05-12 16:02:20 UTC (rev 28897)
+++ trunk/bibdesk/BDSKTemplateParser.m  2024-05-13 15:51:02 UTC (rev 28898)
@@ -628,8 +628,6 @@
                 
                 // collection template tag
                 endTag = endCollectionTagWithKeyPath(keyPath);
-                if ([scanner scanString:endTag intoString:NULL])
-                    continue;
                 start = [scanner scanLocation];
                 [scanner scanUpToString:endTag intoString:&itemTemplateString];
                 if ([scanner scanString:endTag intoString:NULL]) {
@@ -713,7 +711,7 @@
         BDSKTemplateTag *tag = [result objectAtIndex:i];
         
         if ([tag type] != BDSKTemplateTagText) {
-            typeAfter = BDSKNoTemplateTagType;
+            typeAfter = [tag type];
             continue;
         }
         

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



_______________________________________________
Bibdesk-commit mailing list
Bibdesk-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to