original:
<script src="@routes.Assets.versioned("javascripts/main.js")" type="text/javascript"></script>
Scala formatted:
<script src="@routes.Assets.versioned(" javascripts/main.js")" type="text/javascript"></script>
It is adding a space where the filename is, how can I fix this?
Is it better to have scala fmt somehow ignore js files?
Try to exclude js files for scalafmt. Can you try this to add to .scalafmt.conf:
But I'm not sure, I can't test it now. Note, scalafmt won't fix broken format after adding these lines. You should do it manually
UPDATE: I could reproduce that issue on my machine also, but scalafmt is not changing html files. But Intellij Idea does, you can disable them for a scpefic block or entire file by adding this on top of your file
Source