Skip to content

Commit deefcc5

Browse files
committed
trailing blanks cleanup [#867 state:resolved]
1 parent 64a7596 commit deefcc5

File tree

24 files changed

+524
-524
lines changed

24 files changed

+524
-524
lines changed

dryml/lib/dryml/dryml_doc.rb

+3-3
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ def initialize(home, filename, name=nil)
3636
@doc = Dryml::Parser::Document.new(File.read(filename), filename)
3737
parse_tag_defs
3838
end
39-
39+
4040
attr_reader :name, :doc, :tag_defs, :source
41-
41+
4242
def comment
4343
first_node = doc[0][0]
4444
if first_node.is_a?(REXML::Comment)
@@ -82,7 +82,7 @@ def name
8282
def source
8383
doc.restore_erb_scriptlets(node.to_s).strip
8484
end
85-
85+
8686
# The contents of the XML or ERB comment, if any, immediately above the tag definition
8787
def comment
8888
@comment ||= begin

dryml/lib/dryml/part_context.rb

+11-11
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ def self.client_side_storage(contexts, session)
2121
"hoboParts['#{dom_id}'] = (#{code});\n"
2222
end.join
2323
end
24-
25-
24+
25+
2626
def self.pre_marshal(x)
2727
if x.is_a?(ActiveRecord::Base) && x.respond_to?(:typed_id)
2828
TypedId.new(x.typed_id)
@@ -40,19 +40,19 @@ def self.for_call(part_name, environment, locals)
4040
c.form_field_path = environment.form_field_path
4141
end
4242
end
43-
44-
43+
44+
4545
def self.for_refresh(encoded_context, page_this, session)
4646
new do |c|
4747
c.unmarshal(encoded_context, page_this, session)
4848
end
4949
end
50-
51-
50+
51+
5252
def initialize
5353
yield self
5454
end
55-
55+
5656
attr_accessor :part_name, :locals, :this, :this_field, :this_id, :form_field_path
5757

5858

@@ -72,20 +72,20 @@ def unmarshal(client_store, page_this, session)
7272
raise TamperedWithPartContext unless digest == generate_digest(data, session)
7373

7474
context = Marshal.load(Base64.decode64(data))
75-
75+
7676
part_name, this_id, locals, form_field_path = context
7777

7878
if RAILS_DEFAULT_LOGGER
7979
RAILS_DEFAULT_LOGGER.info "Call part: #{part_name}. this-id = #{this_id}, locals = #{locals.inspect}"
8080
RAILS_DEFAULT_LOGGER.info " : form_field_path = #{form_field_path.inspect}" if form_field_path
8181
end
82-
82+
8383
self.part_name = part_name
8484
self.this_id = this_id
8585
self.locals = restore_locals(locals)
8686
self.form_field_path = form_field_path
87-
88-
parse_this_id(page_this)
87+
88+
parse_this_id(page_this)
8989
end
9090

9191

dryml/lib/dryml/tag_parameters.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def method_missing(name, default_content="")
2222

2323
undef_method :default
2424

25-
# Question: does this do anything? -Tom
25+
# Question: does this do anything? -Tom
2626
def [](param_name)
2727
fetch(param_name, nil)
2828
end

0 commit comments

Comments
 (0)