Add line break to Action Text installation outputs
The Action Text installations appends `require("trix")` to the application.js file. The problem is that there isn't a line break in the beginning of the installation output, leading to syntax errors, e.g.: ``` import './application.scss'require("trix") ``` This commit moves the line break from the end to the beginning of the output, fixing it to: ``` import './application.scss' require("trix") ```
This commit is contained in:
parent
1d26c86b86
commit
95e00befbc
@ -26,7 +26,7 @@
|
||||
line = %[require("#{name}")]
|
||||
unless APPLICATION_PACK_PATH.read.include? line
|
||||
say "Adding #{name} to #{APPLICATION_PACK_PATH}"
|
||||
append_to_file APPLICATION_PACK_PATH, "#{line}\n"
|
||||
append_to_file APPLICATION_PACK_PATH, "\n#{line}"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user