saasbook / ruql

Ruby DSL based quiz maker (RUby Question Language)
Other
61 stars 31 forks source link

When --solutions is used, <li> elements for answers incorrectly have nested <p> #20

Open armandofox opened 6 years ago

armandofox commented 6 years ago

When questions are generated without solutions, the answer choices look like this (correct):

<ol class="answers">
  <li>choice 1</li>
  <li>choice 2</li>
</ol>

But when --solutions is used, they incorrectly look like this (note the embedded <p>...</p>), resulting in extra vertical whitespace:

<ol class="answers">
  <li class="incorrect"><p>choice 1</p></li>
  <li class="correct"><p>choice 2</p></li>
</ol>