From f31e286f4a73c5c0f355512b0cb45c6c82088516 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Sat, 22 Jun 2013 01:13:46 -0400 Subject: v5: general code cleaning * propagate back to v4 after testing --- lib/sisu/v5/shared_markup_alt.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'lib/sisu/v5/shared_markup_alt.rb') diff --git a/lib/sisu/v5/shared_markup_alt.rb b/lib/sisu/v5/shared_markup_alt.rb index e0fec924..f2fca338 100644 --- a/lib/sisu/v5/shared_markup_alt.rb +++ b/lib/sisu/v5/shared_markup_alt.rb @@ -192,7 +192,7 @@ module SiSU_TextRepresentation @s=@s end else - p __FILE__ +':'+ __LINE__.to_s + p __FILE__ << ':' << __LINE__.to_s end @s end @@ -227,7 +227,6 @@ module SiSU_TextRepresentation SiSU_TextRepresentation::Alter.new(@s).strip_clean_of_markup end def dgst - en_dgst,img_dgst={},{} txt_dgst=digest(txt) { txt: txt, dgst_txt: txt_dgst } end @@ -253,7 +252,6 @@ module SiSU_TextRepresentation def images(imgs) sys=SiSU_Env::SystemCall.new line_image=[] - img_dgst={} if imgs and imgs.length > 0 @image_name,@image_dgst,@img=[],[],[] imgs.each do |i| @@ -268,7 +266,6 @@ module SiSU_TextRepresentation nil end img_type = /\S+\.(png|jpg|gif)/.match(i)[1] - not_found_msg='image not found' if image_source para_image = image_source + '/' + i image_name = i @@ -298,7 +295,6 @@ module SiSU_TextRepresentation if @t_o.of !=:comment \ && @t_o.of !=:structure \ && @t_o.of !=:layout - en_dgst,img_dgst={},{} txt_stripped_dgst=digest(stripped_clean(@t_o)) txt_markup_reverted_dgst=digest(markup_reverted(@t_o)) endnotes_dgst=[] -- cgit v1.2.3