Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds .keep_next paragraph property. #137

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

benjaminketron
Copy link

@benjaminketron benjaminketron commented Jan 28, 2020

Specifies that the paragraph (or at least part of it) should be
rendered on the same page as the next paragraph when possible. It is an
empty element: <w:keepNext/>. If multiple paragraphs are to be kept
together but they exceed a page, then the set of paragraphs begin on a
new page and page breaks are used thereafter as needed.

http://officeopenxml.com/WPparagraphProperties.php

Usage

context.p 'hi' do
  keep_next true
end

> Specifies that the paragraph (or at least part of it) should be
rendered on the same page as the next paragraph when possible. It is an
empty element: <w:keepNext/>. If multiple paragraphs are to be kept
together but they exceed a page, then the set of paragraphs begin on a
new page and page breaks are used thereafter as needed.

http://officeopenxml.com/WPparagraphProperties.php

Usage

```
context.p 'hi' do
  keep_next true
end
```
@benjaminketron benjaminketron force-pushed the paragraph_keep_next_property branch from 23a6ce5 to 5a312dc Compare January 28, 2020 21:06
@benjaminketron benjaminketron marked this pull request as ready for review January 29, 2020 17:34
goulvench added a commit to goulvench/caracal that referenced this pull request Mar 18, 2020
…_keep_next_property

Adds `.keep_next` paragraph property
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant