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

Numbered list formatting #17

Open
teresaelsey opened this issue Jun 2, 2016 · 0 comments
Open

Numbered list formatting #17

teresaelsey opened this issue Jun 2, 2016 · 0 comments

Comments

@teresaelsey
Copy link
Collaborator

Numbered lists with list items tagged NL1_S, NL1_M, and NL1_E are not being handled as expected. Instead of one numbered list with several items, we are getting several single-item lists and several normal paragraphs.

S, M, and E are for "start," "middle," and "end." A numbered list will have only one NL1_S item and only one NL1_E item, but may have many NL1_M items.

This cXML

<tps:p type="NL1_S">
            Take a holistic view [...]
        </tps:p>
        <tps:p type="NL1_M">
            Evaluate the entire value chain  [...]
        </tps:p>
        <tps:p type="NL1_M">
            Determine what resources are available.  [...]
        </tps:p>
        <tps:p type="NL1_M">
            Evaluate your own position  [...]
        </tps:p>
        <tps:p type="NL1_M">
            Build allies.  [...]
        </tps:p>
        <tps:p type="NL1_M">
            Do the work.  [...]
        </tps:p>
        <tps:p type="NL1_E">
            Find your people.  [...]
        </tps:p>

is producing this BookXML

<list type="1"><item><p align="left">Take a holistic view  [...]</p>
</item></list><break />
<p align="left">Evaluate the entire value chain  [...]</p>
<break />
<list type="1"><item><p align="left">Determine what resources are available.  [...]</p>
</item></list><break />
<p align="left">Evaluate your own position  [...]</p>
<break />
<list type="1"><item><p align="left">Build allies.  [...]</p>
</item></list><break />
<p align="left">Do the work.  [...]</p>
<break />
<list type="1"><item><p align="left">Find your people.  [...]</p>
</item></list>

We would expect this BookXML

<list type="1"><item><p align="left">Take a holistic view  [...]</p></item>
<item><p align="left">Evaluate the entire value chain  [...]</p></item>
<item><p align="left">Determine what resources are available.  [...]</p></item>
<item><p align="left">Evaluate your own position [...]</p></item>
<item><p align="left">Build allies.  [...]</p></item>
<item><p align="left">Do the work.  [...]</p></item>
<item><p align="left">Find your people.  [...]</p></item>
</list>

Sample title is FAST FORWARD, posted here: https://hmhco.box.com/s/81bsb37asynq3a0apd6ienhxeltk04ev

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