# HG changeset patch # User Mads Kiilerich # Date 2017-11-12 21:52:04 # Node ID 1d600909421eba8ff661b739cbaa66c0ecd24a5f # Parent 6bef1d7bafa6b1743ad10f644d72139e10b95b76 pullrequest: avoid empty lines in reviewer list after long lines Whitespace between the reviewer name and a hidden input element could cause line wrapping and leave an apparently empty line. Work around that by putting the empty element at the beginning of the line. diff --git a/kallithea/public/js/base.js b/kallithea/public/js/base.js --- a/kallithea/public/js/base.js +++ b/kallithea/public/js/base.js @@ -1274,6 +1274,7 @@ var addReviewMember = function(id,fname, var element = ( '
  • \n'+ ' \n'+ + ' \n'+ ' \n'+ ' \n'+ ' \n'+ @@ -1281,7 +1282,6 @@ var addReviewMember = function(id,fname, ' {0}\n' : '')+ ' {1}\n'+ - ' \n'+ ' \n'+ ' \n'+ ' (add not saved)\n'+ diff --git a/kallithea/templates/pullrequests/pullrequest_show.html b/kallithea/templates/pullrequests/pullrequest_show.html --- a/kallithea/templates/pullrequests/pullrequest_show.html +++ b/kallithea/templates/pullrequests/pullrequest_show.html @@ -217,6 +217,7 @@ ${self.repo_context_bar('showpullrequest ## If you change something here it should be reflected in the template too.
  • + @@ -227,7 +228,6 @@ ${self.repo_context_bar('showpullrequest (${_('Owner')}) %endif - %if editable: