Revision: 28121
http://sourceforge.net/p/bibdesk/svn/28121
Author: hofman
Date: 2022-12-15 18:07:41 +0000 (Thu, 15 Dec 2022)
Log Message:
-----------
use shorthand cleaning method
Modified Paths:
--------------
trunk/bibdesk/BDSKZentralblattParser.m
Modified: trunk/bibdesk/BDSKZentralblattParser.m
===================================================================
--- trunk/bibdesk/BDSKZentralblattParser.m 2022-12-15 17:26:56 UTC (rev
28120)
+++ trunk/bibdesk/BDSKZentralblattParser.m 2022-12-15 18:07:41 UTC (rev
28121)
@@ -137,7 +137,7 @@
/* ZMath sometimes uses \"o for umlauts which is incorrect, fix that by
adding brackets around it for the parser to work. Also add brackets to acute
and grave accents, so BibDesk translates them to Unicode properly for display */
AGRegex * umlautFixer = [AGRegex regexWithPattern:@"(\\\\[\"'`][a-zA-Z])"
options:AGRegexMultiline];
- bibTeXString = [bibTeXString
stringByCollapsingAndTrimmingCharactersInSet:[NSCharacterSet
whitespaceAndNewlineCharacterSet]];
+ bibTeXString = [bibTeXString
stringByCollapsingWhitespaceAndNewlinesAndRemovingSurroundingWhitespaceAndNewlines];
bibTeXString = [umlautFixer replaceWithString:@"{$1}"
inString:bibTeXString];
NSArray * results = [parser itemsFromBibTeXString:bibTeXString
error:outError];
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