inducer / inducer/relate

Inline question has weird form rendering

Open
#1,467 0 comments 1 reaction 2 assignees Claimed by @inducer View on GitHub
Dominant language
Python
Stars
435
Forks
124
Avg merge
5h 40m
Merged PRs (30d)
14

Description

For an `InlineMultiQuestion`, consider this `question` as part of the problem file:

```
Now suppose we add an arbitrary extra node $t_{n+1}$
and form the new interpolant $p_{n+1}$.

If $\displaystyle\int_a^b \omega(x)\,dx = 0$, do we
always have
$\displaystyle \int_a^b p_n(x)\,dx = \int_a^b p_{n+1}(x)\,dx$?

[[same_integral]]

If the original rule is exact for every polynomial
of degree at most $n$, what is the highest degree
polynomial it must then integrate exactly?

[[highest_degree]]
```

It renders as follows:

Image

This is because somewhere between Crispy forms and Django's form handling, the output gets shoehorned into flexbox containers. This shouldn't be happening; the rendering should be analogous to normal markup. The form rendering is mainly driven by the `InlineMultiQuestionForm` constructor, based on the parsed question.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.