Line breaks vs. Standard Web Forms

Line breaks vs. Standard Web Forms

by J David Eisenberg -
Number of replies: 0
I need to display code samples in my assignment descriptions, and was told that the way to do this is to use "Standard web forms" as my HTML editor rather than the WYSIWYG.

If I enter this (with line breaks after every sequence of three letters as shown here -- and I hope Moodle doesn't screw it up in this post!)
<p>abc
def
<i>ghi</i>
jkl</p>
I would expect to get everything on one line, as HTML converts runs of whitespace to a single blank. Instead of getting what I want:

abc def ghi jkl

Moodle "helpfully" inserts <br> where I put in line breaks. How do I tell Moodle to do exactly what I wrote?

And yes, I am aware that part of the problem is that I have the Linux mindset and expect the machine to do what I ask, rather than the Microsoft mindset which presumes that the software knows what I want better than I do.
Average of ratings: -