Cocoanetics/DTCoreText — pull request #519 by kolyvan (2013-08-01 08:00:38+00:00)
Title: Hyphenate fix

There are two commits.

First fixes a debug message "No line found containing index ... This should never happen, please report that to oliver@cocoanetics.com". Hyphenated line has a wrong string Range, and this commit corrects it via adding of an offset.

Second fixes an issue when CTLineCreateJustifiedLine returns an empty line. This sometimes occurs if the line ends with soft hyphen and the line contains cyrillic chars.