0f31938dd7
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
7 lines
226 B
YAML
7 lines
226 B
YAML
---
|
|
fixes:
|
|
- |
|
|
[`bug 1771442 <https://bugs.launchpad.net/oslo.policy/+bug/1771442>`_]
|
|
Policy rules that are deprecated for removal are now properly formatted
|
|
when rendering sample policy files for documentation.
|