Commit 66f0e847 authored by lukas.burgey's avatar lukas.burgey

Fix newlines in markdown string

parent e8d5c8c0
......@@ -10,6 +10,7 @@ github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/stretchr/objx v0.1.0 h1:4G4v2dO3VZwixGIRoQ5Lfboy6nUhCyYzaqnIAPPhYs4=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/testify v1.4.0 h1:2E4SXV/wtOkTonXsotYi4li6zVWxYlZuYNCXe9XRJyk=
github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
......
......@@ -92,11 +92,17 @@ func questionnaire(input scripts.Input) (output scripts.Output, err error) {
output.State = scripts.Questionnaire
output.Msg = "I need some answers"
output.Questionnaire = map[string]string{
"question_name": "#This is markdown! \\nOr is it? \\n - Option a \\n - Option B \\n",
"question_name": `# This is markdown!
Or is it?
- Option a
- Option B`,
"age_question": "How old are you?",
"list_question": "Who are you?",
"list_question_2": "How many do you want?",
"are_you_sure": "What you are trying is wrong. Are you sure?",
"list_question": "## Who are you?",
"list_question_2": "How many apples do you want?",
"are_you_sure": `## What you are trying is wrong
Please refer to [this link](https://git.scc.kit.edu/feudal) for what may cause this problem!
I know what i'm doing and will take the blame later`,
}
output.QuestionnaireAnswers = qa
return
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment