Solving Issue #775

I improved the method ```add_fragment_to_line``` to get rid of the unexpected behavior:
If the last character of ```segment``` is a soft hyphen I subtract the width of one soft hyphen from the ```@accumulated_width```. 

In addition to that I add a Spec for issue #775 and I improved the spec for issue #347.