hdalsania commented on code in PR #1022:
URL: https://github.com/apache/daffodil-vscode/pull/1022#discussion_r1592466146


##########
debugger/src/main/scala/org.apache.daffodil.tdml/TDML.scala:
##########
@@ -278,6 +280,8 @@ object TDML {
                 .asInstanceOf[JAXBElement[DocumentPartType]]
                 .getValue()
                 .getValue()
+                .replaceFirst("^\\s++", "")
+                .replaceFirst("\\s++$", "")

Review Comment:
   .trim() only removes a whitespace and it does not remove multiple 
whitespaces before and after. We also used .strip() function but it is only 
available post Java11 and make it noncompatible with Java8



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to