forked from python-openxml/python-docx
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun-access-inner-content.feature
More file actions
25 lines (18 loc) · 945 Bytes
/
run-access-inner-content.feature
File metadata and controls
25 lines (18 loc) · 945 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Feature: Access run inner-content including rendered page-breaks
In order to extract run content with high-fidelity
As a developer using python-docx
I need to access differentiated run content in document order
Scenario Outline: Run.contains_page_break reports presence of page-break
Given a run having <zero-or-more> rendered page breaks
Then run.contains_page_break is <value>
Examples: Run.contains_page_break cases
| zero-or-more | value |
| no | False |
| one | True |
| two | True |
Scenario: Run.iter_inner_content() generates the run's text and rendered page-breaks
Given a run having two rendered page breaks
Then run.iter_inner_content() generates the run text and rendered page-breaks
Scenario: Run.text contains the text content of the run
Given a run having mixed text content
Then run.text contains the text content of the run