Skip to content

Commit 345cb12

Browse files
committed
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 Slicer#9 on the SlicerExecutionModel issue tracker. Fixes issue 2781 on Slicer bug tracker.
1 parent 7365853 commit 345cb12

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
@@ -1860,7 +1860,7 @@ endElement(void *userData, const char *element)
18601860
{
18611861
std::string temp = ps->LastData[ps->Depth];
18621862
replaceSubWithSub(temp, "\"", "'");
1863-
//replaceSubWithSub(temp, "\n", " ");
1863+
replaceSubWithSub(temp, "\n", "\\n");
18641864
trimLeadingAndTrailing(temp);
18651865
if (!group && !parameter)
18661866
{

0 commit comments

Comments
 (0)