Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #6436: Adding a carriage return in the description of a technique breaks the generated technique #208

Conversation

VinceMacBuche
Copy link
Member

@VinceMacBuche
Copy link
Member Author

PR updated

@VinceMacBuche VinceMacBuche force-pushed the bug_6436/adding_a_carriage_return_in_the_description_of_a_technique_breaks_the_generated_technique branch from 76a03d9 to 369ef16 Compare June 22, 2015 13:47
content.append('# @'+ key +" "+ technique[key])
for metadata_key in [ 'name', 'description', 'version' ]:
# Add commentary for each new line in the metadata
metadata_value = technique[metadata_key].replace("\n", "\n# ")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what about \r ? does it matter ? And other special chars ?

fanf added a commit that referenced this pull request Jun 22, 2015
…_return_in_the_description_of_a_technique_breaks_the_generated_technique

Fixes #6436: Adding a carriage return in the description of a technique breaks the generated technique
@fanf fanf merged commit 00bda68 into Normation:master Jun 22, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants