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

Asciidoctor output becomes garbled with empty Background #3

Open
jos-plas opened this issue Jun 27, 2019 · 0 comments
Open

Asciidoctor output becomes garbled with empty Background #3

jos-plas opened this issue Jun 27, 2019 · 0 comments

Comments

@jos-plas
Copy link

Description

According to the https://cucumber.io/docs/gherkin/reference it is possible to have no text after the tag background. The example below is taken from the just mentioned website.

Feature: Multiple site support
  Only blog owners can post to a blog, except administrators,
  who can post to all blogs.

  Background:
    Given a global administrator named "Greg"
    And a blog named "Greg's anti-tax rants"
    And a customer named "Dr. Bill"
    And a blog named "Expensive Therapy" owned by "Dr. Bill"

Result
asciidoctor output results in e.g.

====

This indicates an empty section text. In for example a pdf the output becomes garbled and unreadible.

Expected Result
When no text after tag Background is present, then put the text e.g. "==== Background" in the output.

Workaround:
Always add text after the tag Background.

Background: The background
   Given a global administrator named "Greg"
    And a blog named "Greg's anti-tax rants"
jos-plas pushed a commit to jos-plas/asciidoctor-gherkin-extension that referenced this issue Jun 27, 2019
jos-plas pushed a commit to jos-plas/asciidoctor-gherkin-extension that referenced this issue Jun 27, 2019
jos-plas pushed a commit to jos-plas/asciidoctor-gherkin-extension that referenced this issue Jun 27, 2019
jos-plas pushed a commit to jos-plas/asciidoctor-gherkin-extension that referenced this issue Jun 27, 2019
jos-plas pushed a commit to jos-plas/asciidoctor-gherkin-extension that referenced this issue Jun 27, 2019
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

No branches or pull requests

1 participant