From e86c2ee03fcb554b65fb8e5eec74e6772c5a88bf Mon Sep 17 00:00:00 2001 From: bmedx Date: Wed, 23 Jan 2019 16:37:40 -0500 Subject: [PATCH 1/2] Fix a bug with default safelist generation The first model would appear in the default comment, fix is to only lstrip the comment, leaving the intended whitespace. --- code_annotations/find_django.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code_annotations/find_django.py b/code_annotations/find_django.py index 771ff12..dcaaa1f 100644 --- a/code_annotations/find_django.py +++ b/code_annotations/find_django.py @@ -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') From 30c8d46b8e7a64a85a2d7edb93e7497fc9efecc4 Mon Sep 17 00:00:00 2001 From: bmedx Date: Thu, 24 Jan 2019 12:52:58 -0500 Subject: [PATCH 2/2] Bump version to 0.2.2 --- code_annotations/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code_annotations/__init__.py b/code_annotations/__init__.py index 0d8d42b..7316ed3 100644 --- a/code_annotations/__init__.py +++ b/code_annotations/__init__.py @@ -4,4 +4,4 @@ from __future__ import absolute_import, unicode_literals -__version__ = '0.2.1' +__version__ = '0.2.2'