farhan5248 / sheep-dog-tools

Eclipse and Maven plug-ins to help manual testers support developers adopting bdd and tdd using lean principles
GNU General Public License v3.0
0 stars 0 forks source link

Whitespace in DocString is removed in format #179

Closed farhan5248 closed 4 weeks ago

farhan5248 commented 4 weeks ago

It's not the xtext editor that does this because formatting the files is fine. It happens during the Maven invocation.

farhan5248 commented 4 weeks ago

Looks like it's Xtext. When Maven calls xtext code to load the files, it'll preserve the space up to the docstring element. If those spaces aren't there, the line is treated as null and not loaded. The result is that the UML model won't have the line and then it won't be put back into the file. I need to fix what Ctrl+Shift+F does

farhan5248 commented 4 weeks ago

Code To Code tests fail because whitespace inside a doc string is ignored when it should be preserved. I need to think about changing the grammar or handling the formatting.

farhan5248 commented 4 weeks ago

I don't understand why the whitespace is sometimes considered hidden and other times not

Image