Hello!

I add text to the textview. If the next word does not fit at the end of the line, it is transferred to a new line, leaving an empty space at the end of this line.

How can this be fixed?

Closed due to the fact that the essence of the question is not clear to the participants user207618, Kromster , HamSter , aleksandr barakin , Streletz October 14 '16 at 19:42 .

Try to write more detailed questions. To get an answer, explain what exactly you see the problem, how to reproduce it, what you want to get as a result, etc. Give an example that clearly demonstrates the problem. If the question can be reformulated according to the rules set out in the certificate , edit it .

  • Need to prevent line wrap? Or do you need to spell the words? - post_zeew
  • I need him not to translate the word leaving the end of the field empty but translating with - or letters - elik
  • A big word I want to divide by transferring how to implement it - elik
  • You can paste in the desired transfer point \n . - post_zeew

1 answer 1

This is normal behavior and it is unnecessary to correct it, since this is not an error.
This happens because the system does not know the transfer rules. You can set your own rules by inserting a special character in the places of possible transfer, which is called a zero-width space - a space with a zero length. It has the code \u200a (or \u200b , could not remember exactly, try both). Use something like this:

 "тут\u200bне\u200bбудет\u200bвидно\u200bпробелов\u200bно\u200bслова\u200bбудут\u200bпереноситься"