From 0721b24ec4ea6f48e5e6862ebea3e758d982db0a Mon Sep 17 00:00:00 2001 From: Yannick Warnier Date: Fri, 5 Oct 2007 04:05:27 +0200 Subject: [PATCH] [svn r13389] Avoid end of line markup in questions to mark the end of a line in CSV --- main/survey/reporting.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main/survey/reporting.php b/main/survey/reporting.php index cf4a61ac48..ee0c2c62ca 100644 --- a/main/survey/reporting.php +++ b/main/survey/reporting.php @@ -21,7 +21,7 @@ * @package dokeos.survey * @author unknown, the initial survey that did not make it in 1.8 because of bad code * @author Patrick Cool , Ghent University: cleanup, refactoring and rewriting large parts of the code -* @version $Id: reporting.php 13245 2007-09-25 13:36:31Z elixir_julian $ +* @version $Id: reporting.php 13389 2007-10-05 02:05:27Z yannoo $ * * @todo The question has to be more clearly indicated (same style as when filling the survey) */ @@ -907,7 +907,7 @@ function export_complete_report() { for ($ii = 0; $ii < $row['number_of_options']; $ii ++) { - $return .= html_entity_decode(strip_tags($row['survey_question'])).';'; + $return .= str_replace("\r\n",' ',html_entity_decode(strip_tags($row['survey_question']))).';'; } } }