oslo.policy/oslo_policy
Lance Bragstad 0f31938dd7 Remove erroneous newline in sample generation
The sample generation code for policies has a couple different cases
that make sure deprecated rules have descriptions and reasoning
formatted in the comment section. One of the cases that handles
policies deprecated for removal was injecting an extra newline in the
comment text that threw off the formatting of the sample, leaving
the subsequent policy uncommented, and visually unpleasing.

This commit removes the extra newline in the formatting logic for
deprecated policies and adds a test case for the behavior.

Change-Id: I76338d2fbaccf3b43e0da04732fd9df3c05dfbda
Closes-Bug: 1771442
2018-06-01 21:25:19 +00:00
..
locale/en_GB/LC_MESSAGES Imported Translations from Zanata 2018-03-01 06:47:29 +00:00
tests Remove erroneous newline in sample generation 2018-06-01 21:25:19 +00:00
__init__.py exported from oslo-incubator by graduate.sh 2014-12-09 14:40:01 -03:00
_cache_handler.py Add missing parameter description in module _cache_handler 2016-11-02 02:39:38 +00:00
_checks.py Handle deprecation of inspect.getargspec 2017-11-21 12:55:11 -06:00
_external.py http/https check rules as stevedore extensions 2017-10-05 08:40:47 -04:00
_i18n.py Update URLs in documents according to document migration 2017-07-12 23:01:31 +08:00
_parser.py http/https check rules as stevedore extensions 2017-10-05 08:40:47 -04:00
fixture.py http/https check rules as stevedore extensions 2017-10-05 08:40:47 -04:00
generator.py Remove erroneous newline in sample generation 2018-06-01 21:25:19 +00:00
opts.py Add configuration option for enforcing scope 2017-12-20 17:05:02 +00:00
policy.py Fix document formatting 2018-05-18 15:54:31 +09:00
shell.py Remove dead code and use default value of argparse. 2017-01-02 11:21:44 +01:00
sphinxext.py throw an exception when sphinxext cannot find the config file 2017-07-31 16:25:38 +00:00
sphinxpolicygen.py make the sphinxpolicygen extension handle multiple input/output files 2018-04-30 10:11:21 -04:00
version.py pbr.version.VersionInfo needs package name (oslo.xyz and not oslo_xyz) 2017-02-06 12:49:22 -05:00