I have these lines in my (technical) document:

public IQueryable<NatuurlijkPersoon> Get()

public Person Get(Guid id)

public void Add(Person source, MyEntities context)

public bool SetContext(MyEntities context)

Each line is separated by a single Enter.

These have to stay together at all times, line breaking in any way would make the context very hard to understand. So, I've tried the following:

  1. Select lines
  2. Right click
  3. Paragraph
  4. Line and Page Breaks tab
  5. Keep lines together

It's basically the same as the third option provided on this page.

But no effect, they are spread across two pages as before. Any suggestions?


"keep lines together" is applied only within paragraphs.

In your case you need to use keep with next. (take care not to select last line for this action, otherwise this whole part also will be kept together with anything after it)

| improve this answer | |
  • So easy, thanks! I figured it would create a paragraph (symbols) this way, but guess not. – Spikee Jan 4 '16 at 14:03
  • 1
    Major upvote for "take care not to select last line for this action" - I have been getting that wrong for decades. You just made my Monday ! – Mawg says reinstate Monica Apr 29 '19 at 8:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.