Skip to content

Commit

Permalink
Merge pull request #14 from edx/bmedx/fix_safelist_newline
Browse files Browse the repository at this point in the history
Fix a bug with default safelist generation
  • Loading branch information
bmedx authored Jan 24, 2019
2 parents b3f1a71 + 30c8d46 commit 760872a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion code_annotations/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

from __future__ import absolute_import, unicode_literals

__version__ = '0.2.1'
__version__ = '0.2.2'
4 changes: 2 additions & 2 deletions code_annotations/find_django.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ def seed_safelist(self):
# fake_app_2.FakeModel2:
# ".. choice_annotation::": foo, bar, baz
"""
safelist_file.write(safelist_comment.strip())
"""
safelist_file.write(safelist_comment.lstrip())
yaml_ordered_dump(safelist_data, stream=safelist_file, default_flow_style=False)

self.echo('Successfully created safelist file "{}".'.format(self.config.safelist_path), fg='red')
Expand Down

0 comments on commit 760872a

Please sign in to comment.