Merge "[config-ref] fix pattern matching for bullet list"

This commit is contained in:
Jenkins 2016-11-21 07:24:08 +00:00 committed by Gerrit Code Review
commit ce8c49555b
1 changed files with 2 additions and 1 deletions

View File

@ -470,8 +470,9 @@ def write_files(package_name, options, target, output_format):
option.help = "No help text available for this option."
helptext = option.help.strip()
helptext = re.sub(r'\n+\s*\* ', '$sentinal$* ', helptext)
helptext = helptext.replace('\n\n', '$sentinal$')
helptext = helptext.replace('\n*', '$sentinal$*')
helptext = helptext.replace('\n', ' ')
helptext = ' '.join(helptext.split())
# TODO(johngarbutt) space matches only the current template :(