File: pbk-split-para.feature

package info (click to toggle)
python-docx 1.2.0%2Bdfsg-1~exp1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 7,216 kB
  • sloc: xml: 25,323; python: 23,414; makefile: 175
file content (24 lines) | stat: -rw-r--r-- 1,101 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Feature: Split paragraph on rendered page-breaks
  In order to extract document content with high page-attribution fidelity
  As a developer using python-docx
  I need to a way to split a paragraph on its first rendered page break


  Scenario: RenderedPageBreak.preceding_paragraph_fragment is the content before break
    Given a rendered_page_break in a paragraph
     Then rendered_page_break.preceding_paragraph_fragment is the content before break


  Scenario: RenderedPageBreak.preceding_paragraph_fragment includes the hyperlink
    Given a rendered_page_break in a hyperlink
     Then rendered_page_break.preceding_paragraph_fragment includes the hyperlink


  Scenario: RenderedPageBreak.following_paragraph_fragment is the content after break
    Given a rendered_page_break in a paragraph
     Then rendered_page_break.following_paragraph_fragment is the content after break


  Scenario: RenderedPageBreak.following_paragraph_fragment excludes the hyperlink
    Given a rendered_page_break in a hyperlink
     Then rendered_page_break.following_paragraph_fragment excludes the hyperlink