[Pkg] The Trunk: MorphicExtras-nice.57.mcz

commits at source.squeak.org commits at source.squeak.org
Mon Nov 16 14:16:59 UTC 2009


Nicolas Cellier uploaded a new version of MorphicExtras to project The Trunk:
http://source.squeak.org/trunk/MorphicExtras-nice.57.mcz

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

Name: MorphicExtras-nice.57
Author: nice
Time: 16 November 2009, 3:16:47 am
UUID: 498e12ba-840c-a04f-b5ff-2d8c2375afc8
Ancestors: MorphicExtras-dtl.56

Hack to handle crlf pair composition and display

=============== Diff against MorphicExtras-dtl.56 ===============

Item was changed:
  ----- Method: CanvasCharacterScanner>>cr (in category 'stop conditions') -----
  cr
  	"When a carriage return is encountered, simply increment the pointer 
  	into the paragraph."
  
- 	lastIndex_ lastIndex + 1.
  	pendingKernX := 0.
+ 	(lastIndex < text size and: [(text at: lastIndex) = CR and: [(text at: lastIndex+1) = Character lf]])
+ 		ifTrue: [lastIndex := lastIndex + 2]
+ 		ifFalse: [lastIndex := lastIndex + 1].
  	^false!



More information about the Packages mailing list