From f40115f323ce00258ff1fbc2661699da458f7c0a Mon Sep 17 00:00:00 2001 From: John Mair Date: Mon, 5 Dec 2011 01:22:35 +1300 Subject: [PATCH] if expression ends in ; then do not gist the result --- lib/pry/default_commands/documentation.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pry/default_commands/documentation.rb b/lib/pry/default_commands/documentation.rb index e3ec6517..06a4f3ff 100644 --- a/lib/pry/default_commands/documentation.rb +++ b/lib/pry/default_commands/documentation.rb @@ -87,7 +87,7 @@ class Pry corrected_index = index + normalized_range.first if code && code != "" content << code - content << "#{comment_expression_result_for_gist(_pry_.output_array[corrected_index].pretty_inspect)}" + content << "#{comment_expression_result_for_gist(_pry_.output_array[corrected_index].pretty_inspect)}" if code !~ /;\Z/ end end elsif opts.present?(:doc)