code-orchestra / colt-sublime3-plugin

COLT plugin for Sublime Text 3
Apache License 2.0
7 stars 0 forks source link

Autogenerated.colt file contains \n as ansi instead of line breaks #10

Closed webuniverseio closed 10 years ago

webuniverseio commented 10 years ago

Here is an output from my autogenerated.colt file:

<xml projectName="index" projectType="JS">\\\\n  <paths>\\\\n    <sources-set>**/*.js, **/*.htm*, **/*.myjs</sources-set>\\\\n    <excludes-set>out/**, .git/**, .*/**, **/*bak___</excludes-set>\\\\n    <reloads-set>**/*.htm*, **/*.css, **/*.png</reloads-set>\\\\n  </paths>\\\\n  <build>\\\\n    <main-document>C:/Program Files (x86)/COLT/projects/js/balls/index.html</main-document>\\\\n    <use-custom-output-path>false</use-custom-output-path>\\\\n    <out-path />\\\\n    <precompile>\\\\n      <is-new>true</is-new>\\\\n      <type-script>false</type-script>\\\\n      <use-less>false</use-less>\\\\n      <use-sass>false</use-sass>\\\\n      <coffee-script>false</coffee-script>\\\\n    </precompile>\\\\n    <offline-cms>\\\\n      <integrate-mercury>false</integrate-mercury>\\\\n      <run-mercury>true</run-mercury>\\\\n    </offline-cms>\\\\n    <security>\\\\n      <use-inspectable>true</use-inspectable>\\\\n      <can-edit />\\\\n      <can-view>*</can-view>\\\\n    </security>\\\\n  </build>\\\\n  <live>\\\\n    <settings>\\\\n      <clear-log>false</clear-log>\\\\n      <disconnect>true</disconnect>\\\\n    </settings>\\\\n    <launch>\\\\n      <launcher>DEFAULT</launcher>\\\\n      <browser-path />\\\\n      <nodejs-path />\\\\n      <console-value />\\\\n    </launch>\\\\n    <live>\\\\n      <paused>false</paused>\\\\n      <max-loop>10000</max-loop>\\\\n      <live-html-edit>true</live-html-edit>\\\\n      <disable-in-minified>true</disable-in-minified>\\\\n      <enable-debugger>false</enable-debugger>\\\\n    </live>\\\\n  </live>\\\\n  <production-build>\\\\n    <output-path />\\\\n    <files-paths />\\\\n    <require-js>\\\\n      <used>false</used>\\\\n      <build-profile />\\\\n    </require-js>\\\\n    <combing-files>\\\\n      <used>false</used>\\\\n    </combing-files>\\\\n    <gZip>\\\\n      <used>false</used>\\\\n      <files-paths />\\\\n    </gZip>\\\\n    <jsdoc>\\\\n      <used>false</used>\\\\n      <files-paths />\\\\n      <output-path />\\\\n    </jsdoc>\\\\n    <jshint>\\\\n      <used>false</used>\\\\n      <files-paths />\\\\n    </jshint>\\\\n    <minimizing-scripts>\\\\n      <used>false</used>\\\\n      <warning-level />\\\\n    </minimizing-scripts>\\\\n    <props2js>\\\\n      <used>false</used>\\\\n      <property-file />\\\\n      <type-value />\\\\n    </props2js>\\\\n    <s3>\\\\n      <used>false</used>\\\\n      <access-key />\\\\n      <secret-key />\\\\n      <bucket-value />\\\\n      <use-config>false</use-config>\\\\n      <config-file />\\\\n      <gzip-enabled>false</gzip-enabled>\\\\n      <encryption-enabled>false</encryption-enabled>\\\\n    </s3>\\\\n  </production-build>\\\\n</xml>

It seems that instead of \n characters there should be new lines.

makc commented 10 years ago

Crazy shit. How come it did not happen before?

makc commented 10 years ago

Can't reproduce this. Sublime plugin does write xml in one line. If I do cmd+S in COLT, I get newlines, but then running the project from Sublime (that saves .colt file again) does not give me any "\n"-s... :confused: '

makc commented 10 years ago

Ok, it happens in ST3 but not ST2, reproduced.

makc commented 10 years ago

Wait, it does not fix it...

makc commented 10 years ago

Yep, this does it.