xuanyuanking 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_r310073606
##########
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:
We need this because of one more "\n" added in
https://github.com/apache/spark/pull/25319/files#diff-61a3c327c6093db76e3c77280ff71ae5R233?
----------------------------------------------------------------
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]