Mulitline tags in [html] GIFT files collapse to one line

Re: Mulitline tags in [html] GIFT files collapse to one line

by Nick Urbanik -
Number of replies: 0
I mean that I would really like to help fix this problem. I am just asking:
  • if I fix it, could the fix be incorporated into Moodle? I already have a fix for myself, so I am not interested in spending lots of time to create something that will never be used.
  • Do you have any suggestions on how I should go about it?
  • You can see from the Perl code that I wrote that I just preprocessed the text between <pre>...</pre> tags,
    • putting "\n" in front of newlines,
    • replacing leading blanks with &nbsp;,
    • replacing '<' with &lt; and
    • '>' with &gt;
  • There are problems with this.
    • Suppose someone is asking questions about <pre>...</pre> tags in a quiz about HTML?
    • If the import code doesn't even see the newlines, then the first two points above won't work.
  • My existing code to work around the problem only copes with one set of <pre>...</pre> tags.
  • If no one is interested, then I won't waste the time.