Bug 1098856 - Asciidoc import error
Summary: Asciidoc import error
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: PressGang CCMS
Classification: Community
Component: ImportTool
Version: 1.6
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 1.7
Assignee: Matthew Casperson
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 1091570
TreeView+ depends on / blocked
 
Reported: 2014-05-19 04:10 UTC by Matthew Casperson
Modified: 2014-08-04 22:28 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.