Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
python-docx / features / doc-add-paragraph.feature
Size: Mime:
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   |