fastlane-old / deliver

Upload screenshots, metadata and your app to the App Store using a single command
https://fastlane.tools
2.24k stars 162 forks source link

Deliverfile - description with newline #585

Closed gran33 closed 8 years ago

gran33 commented 8 years ago

Hi, I have a Deliverfile with description in it, the description include newline characters. Fastlane/iTunes refuse to handle this newline characters.

How can I escaping newline characters in the description section in the Deliverfile?

Example: description({ "en-US" => "I'm an awesome app! U should download me NOW" })

KrauseFx commented 8 years ago

Since the Deliverfile is just a Ruby file, you can use https://stackoverflow.com/questions/2060253/how-to-do-a-newline-in-output :+1:

gran33 commented 8 years ago

If will help to someone, I'm using shell script a.k.a bash language to my build and deploy stuff. So I m using sed for replace patterns but I m escaping some special characters, I'm doing it like this: local valueWithEscaping=$(echo "${originalValue}" | sed -e 's/[]\/$*.^|[]/\\&/g') sed -i "s|__VALUE_TO_REPLACE__|${valueWithEscaping}|g;" <input_file> The -i is for in place replace.

fastlane-bot commented 8 years ago

This issue was migrated to https://github.com/fastlane/fastlane/issues/1521. Please post all further comments there.

fastlane is now a mono repo, you can read more about the change in our blog post. All tools are now available in the fastlane main repo :rocket: