4

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?

1 Answer 1

5

"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)

2
  • So easy, thanks! I figured it would create a paragraph (symbols) this way, but guess not.
    – Spikee
    Jan 4, 2016 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 ! Apr 29, 2019 at 8:43

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .