Simon-Initiative / course-digest

Tool to produce a summary or digest of OLI course package contents
MIT License
2 stars 0 forks source link

[Bugfix] Remove duplicated group headers in output. #173

Closed marc-hughes closed 1 year ago

marc-hughes commented 1 year ago

Sometimes, there are wb:inline elements inside a section element, where both the inline and the section specifies a purpose.

In cases where those are the same purpose, we get double headers. We should ignore the purpose on inline elements if they are already inside a section for that purpose.

Before: image

After: image