unicesi / amelia

:airplane: DSL for deploying distributed systems, with custom commands to compile and execute FraSCAti applications
GNU Lesser General Public License v3.0
2 stars 3 forks source link

String interpolation issues #42

Open jachinte opened 7 years ago

jachinte commented 7 years ago

The command cmd 'apt-get install -y docker-ce=«version» --allow-unauthenticated' is correctly compiled to "apt-get install -y docker-ce=" + this.version + " --allow-unauthenticated". However, introducing a line break after the version variable produces a different string:

cmd 'apt-get install -y docker-ce=«version»
     --allow-unauthenticated'

The resulting string is "apt-get install -y docker-ce=" + this.version + "--allow-unauthenticated". There is a missing space before --allow-unauthenticated.

jachinte commented 7 years ago

Also, it doesn't compile break lines as expected: \n is compiled into \\n