asciidoctor / asciidoctor-confluence

Push Asciidoctor file to Confluence
https://rubygems.org/gems/asciidoctor-confluence
MIT License
82 stars 28 forks source link

Creating page results in "com.ctc.wstx.exc.WstxParsingException: Unexpected close tag </p>; expected </br>" #8

Closed bentolor closed 2 years ago

bentolor commented 8 years ago

Thanks for this tool! If I get asciidoctor-confluence to work, it would solve soo many issues for me.

Thing is: It works for a simple page, but on using the following minimal AsciiDoc fragment it will throw an error:

* foo
* bar +
* baz

which results in:

➜ doc git:(master) ✗ ./upload-to-confluence 
Enter Password: 
An error occurred, the page has not been created because:
[com.ctc.wstx.exc.WstxLazyException] com.ctc.wstx.exc.WstxParsingException: Unexpected close tag </p>; expected </br>.
 at [row,col {unknown-source}]: [16,26]

I assume that some party is whining about a non-closed <br>-Tag (which is perfectly fine for HTML).

Unfortunately my Ruby skills are void and I even have no clue where the troublesome code sits in.

bentolor commented 8 years ago

Same issue for images: image:examples.png[MyExample,400,link="examples.png"] will fail.

Kabhal commented 8 years ago

Hello This is probably the html backend problem.

Try to add : :backend: xhtml to your adoc to force xhtml backend.

bentolor commented 8 years ago

Yes, adding the xhtml-slause seems to workaround this problem. Thank you!

I think the script should guide the user regarding this issue. If I understand the related issue, that change would fix it globally w/o requiring to add the clause to each of my documents.

So please feel free to close this issue if appropriate.

mojavelinux commented 2 years ago

resolved by #26