Improve the paragraph maker on the staff grading page

This commit is contained in:
Diana Huang
2012-12-06 13:24:20 -05:00
parent ffa42b6f11
commit ef82ced2af

View File

@@ -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>"