CenterForOpenScience / pydocx

An extendable docx file format parser and converter
Other
186 stars 55 forks source link

Heading inside complex field has strong applied #188

Closed kylegibson closed 9 years ago

kylegibson commented 9 years ago

For example, the current output is:

<h2><strong>Foo</strong></h2>

The desired output is

<h2>Foo</h2>

This still works for non-complex field runs but is currently broken for complex field runs.

winhamwr commented 9 years ago

Looks good, other than the test name and code comment suggestion.

winhamwr commented 9 years ago

Also, I'm pretty sure this will save cleaners a lot of time. I hear often about how it's a pain to de-bold things if it comes in as a heading and it shouldn't be.

kylegibson commented 9 years ago

I'm pretty sure this will save cleaners a lot of time

This isn't a bug that is currently present in PolicyStat. This was introduced in v0.9.0 which hasn't gone live for us yet.