Repository URL to install this package:
Version:
0.8.10 ▾
|
Feature: Add a paragraph with optional text and style
In order to populate the text of a document
As a developer using python-docx
I need a way to add a styled paragraph of text in a single step
Scenario: Add an empty paragraph
Given a blank document
When I add a paragraph without specifying text or style
Then the last paragraph is the empty paragraph I added
Scenario: Add a paragraph specifying its text
Given a blank document
When I add a paragraph specifying its text
Then the last paragraph contains the text I specified
Scenario Outline: Add a paragraph specifying its style
Given a document
When I add a paragraph specifying its style as a <style-spec>
Then the last paragraph has the style I specified
Examples: ways of specifying a style
| style-spec |
| style object |
| style name |