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

Bug with empty adoc files / only a first row title #317

Closed
cbouveresse opened this issue Sep 10, 2015 · 2 comments
Closed

Bug with empty adoc files / only a first row title #317

cbouveresse opened this issue Sep 10, 2015 · 2 comments
Assignees
Labels

Comments

@cbouveresse
Copy link

Hi,

I've been looking to debug the following build failure in my Asciidoctor Maven project (plugin version 1.5.2.1) for 2 hours... And I've finally found a simple issue on asciidoctor pdf.

BUILD FAILURE:

[ERROR] Failed to execute goal org.asciidoctor:asciidoctor-maven-plugin:1.5.2.1:
process-asciidoc (generate-pdf-doc) on project asciidoctor-pdf-example: Executio
n generate-pdf-doc of goal org.asciidoctor:asciidoctor-maven-plugin:1.5.2.1:proc
ess-asciidoc failed: (NoMethodError) undefined method `margins' for nil:NilClass

Let's explain the issue with the asciidoctor-pdf-example from Asciidoctor Maven Examples.

Let's modify the content of a random .adoc file from this project:

If I empty the file content , build failure:


If I only put a main title in this in the file, build failure:

= Main Title

If I only put a second title content in the file, build success:

== Main Title

If I put a main title with content in the file, build failure:

= Main Title
a

If I put a main title, skip a line, and put content in the file, build success:

= Main Title

a

I therefore suppose this small issue comes from Asciidoctor PDF ! HTML works well.

@mojavelinux
Copy link
Member

This definitely seems like an Asciidoctor PDF issue. I'll mark it as a bug and schedule to get it fixed for the beta.

@mojavelinux
Copy link
Member

This was fixed by 31d7c27, which was included in the alpha.13 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants