Commit ef82ced2 by Diana Huang

Improve the paragraph maker on the staff grading page

parent ffa42b6f
......@@ -307,7 +307,7 @@ class StaffGrading
@get_next_submission problem.location
make_paragraphs: (text) ->
paragraph_split = text.split("\n")
paragraph_split = text.split(/\n\s*\n/)
new_text = ''
for paragraph in paragraph_split
new_text += "<p>#{paragraph}</p>"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment