Skip to content

Conversation

@gregturn
Copy link
Owner

This contains the proper style. The problem is, when applied to:

If you'll notice, all lines of that bullet list are tagged **Bullet [PACKT]**, except the last. It's tagged
**Bullet End [PACKT]**.

...it renders:

<text:p text:style-name="Normal_20__5b_PACKT_5d_">If you’ll notice, all lines of that bullet 
list are tagged <text:span text:style="Key_20_Word_205b_PACKT_5d_">Bullet [PACKT]</text:span>, 
except the last. It’s tagged <text:span text:style="Key_20_Word_205b_PACKT_5d_">Bullet 
End [PACKT]</text:span>.</text:p>

The double-underscore is trimmed out for some reason.

In another situation, it doesn't do that.

The output will be compacted XML (FODT), so it will be **hard** to read. That why running it through
`xmllint` is handy.

renders

      <text:p text:style-name="Normal_20__5b_PACKT_5d_">The output will be compacted XML 
(FODT), so it will be <text:span text:style="Key_20_Word_20__5b_PACKT_5d_">hard</text:span> 
to read. That why running it through xmllint is handy.</text:p>

gregturn added a commit that referenced this pull request Jun 19, 2014
Tried to plugin for the other types, like strong, and hit similar issue spotted in #12.

Resolves #13.
@gregturn
Copy link
Owner Author

It appears that it likes to convert the double-underscore found inside the style name into an inline emphasis token. I'm not sure how to intercept or override this.

gregturn added a commit that referenced this pull request Jun 19, 2014
@gregturn gregturn merged commit 2abde59 into master Jun 19, 2014
@gregturn gregturn deleted the keywords branch June 19, 2014 19:39
@gregturn
Copy link
Owner Author

By moving case :emphasis to the bottom, things now format properly!

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

Successfully merging this pull request may close these issues.

2 participants