planga82 commented on a change in pull request #25319: [SPARK-28585][WebUI] 
Improve WebUI DAG information: Add extra info to rdd from spark plan
URL: https://github.com/apache/spark/pull/25319#discussion_r310181826
 
 

 ##########
 File path: core/src/main/resources/org/apache/spark/ui/static/spark-dag-viz.js
 ##########
 @@ -496,7 +496,7 @@ function connectRDDs(fromRDDId, toRDDId, edgesContainer, 
svgContainer) {
  * Replace `/n` with `<br/>`
  */
 function replaceLineBreak(str) {
-    return str.replace("\\n", "<br/>");
+    return str.replace(/\\n/g, "<br/>");
 
 Review comment:
   Yes, this is the reason

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to