Skip to content

Additional line break when attempting gap fill question when using log in as #129

Description

@kiratskitizing

Describe the bug
The display of a gap fill question when using the log in as functionality shows a line break before the gap fill. This only happens when using log in as.

To Reproduce
Steps to reproduce the behavior:

  1. Create a course and enrol student users.
  2. Turn edit mode to On.
  3. Add a quiz activity.
  4. Add a Gap fill question, type a name and then the following on the text:
    The green [mat] is [really] cool.
  5. Go to the course participants page.
  6. Click a student user and click "Log in as".
  7. Go to the quiz and attempt quiz.

RESULT: There is a line brake before the first answer fill.

Expected behavior
The question should be all printed displayed in one line.

Screenshots

Image

Happens on versions:
2025050100
2025101000

Additional context
This appears to only happen when using Log in as. Direct log in does not show the bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions