Revision: 28478
http://sourceforge.net/p/bibdesk/svn/28478
Author: hofman
Date: 2023-12-28 23:30:38 +0000 (Thu, 28 Dec 2023)
Log Message:
-----------
parse item template as subtemplate
Modified Paths:
--------------
trunk/bibdesk/BDSKTemplateDocument.m
Modified: trunk/bibdesk/BDSKTemplateDocument.m
===================================================================
--- trunk/bibdesk/BDSKTemplateDocument.m 2023-12-28 22:51:44 UTC (rev
28477)
+++ trunk/bibdesk/BDSKTemplateDocument.m 2023-12-28 23:30:38 UTC (rev
28478)
@@ -329,7 +329,7 @@
suffix = [attrString attributedSubstringFromRange:suffixRange];
if (separatorRange.length > 0)
separator = [attrString
attributedSubstringFromRange:separatorRange];
- parsedTemplate = [BDSKTemplateParser
arrayByParsingTemplateAttributedString:[attrString
attributedSubstringFromRange:itemRange]];
+ parsedTemplate = [BDSKTemplateParser
arrayByParsingTemplateAttributedString:[attrString
attributedSubstringFromRange:itemRange] isSubtemplate:YES];
if (@available(macOS 10.14, *)) {
if (prefix)
prefix = [prefix
attributedStringByAddingTextColorAttribute];
@@ -346,7 +346,7 @@
suffix = [[[NSAttributedString alloc] initWithString:[str
substringWithRange:suffixRange] attributes:attrs] autorelease];
if (separatorRange.length > 0)
separator = [[[NSAttributedString alloc] initWithString:[str
substringWithRange:separatorRange] attributes:attrs] autorelease];
- parsedTemplate = [BDSKTemplateParser
arrayByParsingTemplateString:[str substringWithRange:itemRange]];
+ parsedTemplate = [BDSKTemplateParser
arrayByParsingTemplateString:[str substringWithRange:itemRange]
isSubtemplate:YES];
}
if ((templateDict = [self convertPubTemplate:parsedTemplate
defaultFont:font])) {
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit