Avoid breaking line between two words when resizing [duplicate]
问题 This question already has answers here : Can I stop two words from breaking onto separate lines and creating an orphan? (3 answers) Closed 3 years ago . I have a string and I need it not to break two specific words in different lines. Example: "Ask for it it when contracting until 2016/09/30 with T-2 Rate" When I resize window and make it smaller there is a moment that it outputs: "Ask for it it when contracting until 2016/09/30 with T-2 \n Rate" I would like T-2 + Rate to be always together.