When we store more then one line to be injected the line separation is lost in the Drush alias file.

As provision first saves it there and then used it for the templates the end output is also a single long line.

That's a problem for some Apache config...

CommentFileSizeAuthor
#2 multiline_injections-2685665-2.patch7.64 KBhelmo

Comments

helmo created an issue. See original summary.

helmo’s picture

Status: Active » Needs work
StatusFileSize
new7.64 KB

I think we should store the texts as arrays of line strings... WIP

helmo’s picture

Still strange.

It works OK the first time you save the node form from the frontend.
Then the verify task writes an updated drush alias file with a few ^M's visible, and proper newlines in the vhost config.

When you you re-save the node form that same verify task overwrites the alias file ... no more ^M's ... and no more newlines in the vhost config.

socialnicheguru’s picture

When the field is empty during verification I get this warning/error:

implode(): Invalid arguments passed provision_hosting_injections.drush.inc:49