From: Timo Heister Date: Thu, 9 Jul 2015 18:29:59 +0000 (-0400) Subject: fix to wrapcomments.py X-Git-Tag: v8.3.0-rc1~41^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=488d8429381278f391d2b1a4c794e04141b4ed48;p=dealii.git fix to wrapcomments.py --- diff --git a/contrib/utilities/wrapcomments.py b/contrib/utilities/wrapcomments.py index 8001666120..3c18d38a22 100755 --- a/contrib/utilities/wrapcomments.py +++ b/contrib/utilities/wrapcomments.py @@ -18,6 +18,7 @@ def wrap_block(lines, startwith): longline = " ".join(lines) wrapper.initial_indent = startwith wrapper.subsequent_indent = startwith + wrapper.break_long_words = False wrapper.width = 78 return wrapper.wrap(longline) @@ -412,6 +413,16 @@ lineI = [" /**", \ " */"] assert(format_block(lineI)==lineI) +# do not break $very_long_formula_without_spacing$: +longtext = "blabla"*20 +lineI = [" /**", \ + " * a $" + longtext + "$", \ + " */"] +lineO = [" /**", \ + " * a", \ + " * $" + longtext + "$", \ + " */"] +assert(format_block(lineI)==lineO)