Bug 1098856

Summary: Asciidoc import error
Product: [Community] PressGang CCMS Reporter: Matthew Casperson <mcaspers>
Component: ImportToolAssignee: Matthew Casperson <mcaspers>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 1.6CC: cbredesen, lnewson
Target Milestone: ---   
Target Release: 1.7   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1091570    

Description Matthew Casperson 2014-05-19 04:10:18 UTC
https://github.com/asciidoctor/asciidoctor/blob/master/test/fixtures/list_elements.asciidoc does not import correctly. The end result is something like

ID = 12345
Title = Unknown
Product = Unknown
Format = DocBook 4.5
Type = Book
Copyright Holder = Red Hat
# Imported from list_elements.asciidoc
Example Articles [54321]

Comment 1 Matthew Casperson 2014-06-10 23:28:24 UTC
Fixed in Build 1.7-SNAPSHOT 201406110926

Running 

asciidoctor -b docbook45 -d book -o - list_elements.asciidoc

against the file above results in 

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
<?asciidoc-toc?>
<?asciidoc-numbered?>
<book xmlns="http://docbook.org/ns/docbook" lang="en">
<bookinfo>
<title>AsciiDoc Home Page</title>
<date>2014-05-19</date>
</bookinfo>
<section id="_example_articles">
<title>Example Articles</title>
<itemizedlist>
<listitem>
<simpara>Item 1</simpara>
</listitem>
<listitem>
<simpara>Item 2</simpara>
</listitem>
<listitem>
<simpara>Item 3</simpara>
</listitem>
</itemizedlist>
</section>
</book>

Note that the output of this conversion is invalid, with chapters being added as children of the book. The import tool will now map any sections under a book to a chapter.

Comment 2 Lee Newson 2014-06-16 04:49:09 UTC
Verified that the specified document imported correctly as both a book and an article.