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?

Oliver Salzburg
  • 89,072
  • 65
  • 269
  • 311
kbd
  • 529

1 Answers1

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)