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

Duplicate componentization #11

Open
elmimmo opened this issue Sep 2, 2011 · 0 comments
Open

Duplicate componentization #11

elmimmo opened this issue Sep 2, 2011 · 0 comments

Comments

@elmimmo
Copy link

elmimmo commented Sep 2, 2011

For this particular snippet below, peregrin is doing some weird things with componentization when converting to EPUB. It adds to the first component (i.e., after the cover, index.html) parts for which it will also create a separate component, hence duplicating content once all components are put together.

<hgroup class="title-page">
    <h1 class="title-title">My ebook</h1>
    <h2 class="title-author">John Doe</h2>
</hgroup>

<article class="dedication">
    <h2>Dedication</h2>
    <p>To someone I care for</p>
</article>

<article class="text">
    <article>
        <h3>First text chapter</h3>
        <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. In accumsan massa non nulla lacinia eu feugiat diam imperdiet. Vestibulum non felis mauris. In auctor est nec quam eleifend luctus imperdiet ut massa. Duis et tellus non felis viverra euismod. Praesent gravida ornare arcu, non fringilla sem pharetra ac.</p>
    </article>

    <article>
        <h3>Second text chapter</h3>
        <p>Proin imperdiet mi tempor nisl ullamcorper rhoncus. Curabitur luctus posuere neque, ac consequat quam volutpat nec. Fusce at est sem. Vivamus ante diam, ullamcorper at scelerisque in, auctor at est. Proin diam tortor, sollicitudin vitae tempus sed, tincidunt vitae augue. Quisque id est turpis. Phasellus non magna metus, in bibendum magna.</p>
    </article>
</article>

Peregrin will do it right if I delete the hgroup at the top or add an h2 inside the article class="text", which has none.

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