Skip to content

Commit 882b86d

Browse files
sankheshjcfr
authored andcommitted
Newline characters replaced by line breaks
QStrings are used for Help and Acknowledgement frame on Slicer module panel. Newline characters are not respected by QString. They need to be line breaks. Fixes issue #9 on the SlicerExecutionModel issue tracker. Fixes issue 2781 on Slicer bug tracker.
1 parent 92269e5 commit 882b86d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ModuleDescriptionParser/ModuleDescriptionParser.cxx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1977,7 +1977,7 @@ endElement(void *userData, const char *element)
19771977
{
19781978
std::string temp = ps->LastData[ps->Depth];
19791979
replaceSubWithSub(temp, "\"", "'");
1980-
//replaceSubWithSub(temp, "\n", " ");
1980+
replaceSubWithSub(temp, "\n", "\\n");
19811981
trimLeadingAndTrailing(temp);
19821982
if (!group && !parameter)
19831983
{

0 commit comments

Comments
 (0)