Revision: 22530
http://sourceforge.net/p/bibdesk/svn/22530
Author: hofman
Date: 2018-08-26 11:59:34 +0000 (Sun, 26 Aug 2018)
Log Message:
-----------
Remove commented out code and localized error for getting html for web parser
Modified Paths:
--------------
trunk/bibdesk/BDSKWebParser.m
trunk/bibdesk/English.lproj/Localizable.strings
trunk/bibdesk/French.lproj/Localizable.strings
trunk/bibdesk/German.lproj/Localizable.strings
Modified: trunk/bibdesk/BDSKWebParser.m
===================================================================
--- trunk/bibdesk/BDSKWebParser.m 2018-08-26 11:58:40 UTC (rev 22529)
+++ trunk/bibdesk/BDSKWebParser.m 2018-08-26 11:59:34 UTC (rev 22530)
@@ -98,29 +98,7 @@
// entry point for web group
+ (BDSKWebParser *)parserForDocument:(DOMDocument *)domDocument fromURL:(NSURL
*)url error:(NSError **)outError{
- /*
- NSError *error = nil;
- NSString *htmlString = [(id)[domDocument documentElement] outerHTML];
- if (nil == htmlString) {
- if (outError) {
- *outError = [NSError
mutableLocalErrorWithCode:kBDSKWebParserFailed
localizedDescription:NSLocalizedString(@"Failed to read HTML string from
document", @"web view error; should never occur")];
- [*outError setValue:NSLocalizedString(@"Please inform the
developer of this error and provide the URL.", @"web view error")
- forKey:NSLocalizedRecoverySuggestionErrorKey];
- }
- return nil;
- }
-
- NSXMLDocument *xmlDoc = [[NSXMLDocument alloc] initWithXMLString:htmlString
-
options:NSXMLDocumentTidyHTML|NSXMLNodePreserveEmptyElements
- error:&error];
- [xmlDoc autorelease];
- if(xmlDoc == nil){
- if(outError) *outError = error;
- return nil;
- }
- */
-
Class parserClass = Nil;
for (parserClass in [self parsers]) {
if ([parserClass canParseDocument:domDocument fromURL:url])
Modified: trunk/bibdesk/English.lproj/Localizable.strings
===================================================================
(Binary files differ)
Modified: trunk/bibdesk/French.lproj/Localizable.strings
===================================================================
(Binary files differ)
Modified: trunk/bibdesk/German.lproj/Localizable.strings
===================================================================
(Binary files differ)
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit