Merge "Don't break long/hyphenated words in RST creation"

This commit is contained in:
Zuul 2020-10-14 00:46:40 +00:00 committed by Gerrit Code Review
commit 8e0d7b054f
1 changed files with 2 additions and 1 deletions

View File

@ -24,7 +24,8 @@ def to_snake_case(d):
def to_paragraphs(d, *args):
for k in args:
if k in d and isinstance(d[k], str):
d[k] = '\n'.join(textwrap.wrap(d[k]))
d[k] = '\n'.join(textwrap.wrap(
d[k], break_long_words=False, break_on_hyphens=False))
def ossa_date_formatter(value):