[squeak-dev] The Inbox: Help-Squeak-SWiki-ct.3.mcz

commits at source.squeak.org commits at source.squeak.org
Mon Mar 2 09:35:19 UTC 2020


Christoph Thiede uploaded a new version of Help-Squeak-SWiki to project The Inbox:
http://source.squeak.org/inbox/Help-Squeak-SWiki-ct.3.mcz

==================== Summary ====================

Name: Help-Squeak-SWiki-ct.3
Author: ct
Time: 2 March 2020, 10:35:15.674949 am
UUID: 35ed0b75-38a5-3e4f-8ade-20102ed718eb
Ancestors: Help-Squeak-SWiki-mt.2

Complements HelpSystem-Core-ct.129: Specify cleanseBlock for better parsing of the wikis

=============== Diff against Help-Squeak-SWiki-mt.2 ===============

Item was changed:
  ----- Method: SWikiHelp class>>asHelpTopic (in category 'converting') -----
  asHelpTopic
  
  	^ HtmlHelpTopic new
  		url: 'http://wiki.squeak.org/squeak';
+ 		selectBlock: [:url | (url beginsWith: '/squeak/') and: [(url includes: $.) not ".edit, .history, ..."] and: [url last isDigit]];
- 		selectBlock: [:url | ((url beginsWith: '/squeak/') and: [(url includes: $.) not ".edit, .history, ..."]) and: [url last isDigit]];
  		convertBlock: [:url | 'http://wiki.squeak.org', url];
+ 		cleanseBlock: [:contents | (contents readStream
+ 			upToAll: '<table border=0 cellspacing=0 cellpadding=0 width="100%"';
+ 			upToAll: '</table>';
+ 			upToEnd) ifEmpty: [contents]]
  		yourself!



More information about the Squeak-dev mailing list