Kris - 2008-12-29

I've discovered that when the parameter includeQuestionId RequesterService.getAnswerValue() is true, then it is RequesterService.getAnswerValue() that must strip any pre-existing tab chars from the answer. RequesterService.getAnswerValue() uses the hardcoded value "\t" to separate the questionID from the answer string.

Therefore the above patch is incorrect and will cause corrupted results.

New patch is at line 1125 of RequesterService.getAnswerValue():

if (val.length()==0) {
result += HITResults.EMPTY_ANSWER; // Feature 1816806 (missing columns when value is NULL)
}
else {
//BEGIN PATCH//
//- Tabs in Data Bug - Patched 17Dec2008 By Kris Carle kbcarle@gmail.com //
val = val.replaceAll("\t", " ");
//optional: also replace newline chars
val = val.replaceAll("\n", " ");
//END PATCH//
result += val;
}