Skip to content

Commit

Permalink
whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
yob committed Aug 31, 2012
1 parent 244192c commit a8c545c
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion lib/pdf/reader/register_receiver.rb
Expand Up @@ -85,7 +85,7 @@ def series(*methods)
match = idx and break if count == 0
end

if match
if match
return callbacks[match, methods.size]
else
return nil
Expand Down
6 changes: 3 additions & 3 deletions lib/pdf/reader/text_receiver.rb
Expand Up @@ -9,10 +9,10 @@
# distribute, sublicense, and/or sell copies of the Software, and to
# permit persons to whom the Software is furnished to do so, subject to
# the following conditions:
#
#
# The above copyright notice and this permission notice shall be
# included in all copies or substantial portions of the Software.
#
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
Expand Down Expand Up @@ -161,7 +161,7 @@ def super_show_text (string)

x = (@tm[2,0]/TS_UNITS_PER_H_CHAR).to_i
y = (ury - (@tm[2,1]/TS_UNITS_PER_V_CHAR)).to_i

#puts "rendering '#{string}' to #{x}x#{y}"

place = (@output[y] ||= (" " * urx.to_i))
Expand Down
2 changes: 1 addition & 1 deletion spec/buffer_spec.rb
Expand Up @@ -163,7 +163,7 @@
buf.token.should eql("James \\(Code Monkey")
buf.token.should eql(")")
end

it "should correctly return an indirect reference" do
buf = parse_string("aaa 1 0 R bbb")

Expand Down
2 changes: 1 addition & 1 deletion spec/cmap_spec.rb
Expand Up @@ -36,7 +36,7 @@
map = PDF::Reader::CMap.new(binread(filename))
map.decode(0x0100).should == [0x0100] # mapped with the bfrange operator
end

it "should correctly load a cmap that uses the beginbfrange operator with the array syntax" do
filename = File.dirname(__FILE__) + "/data/cmap_with_bfrange_three.txt"
map = PDF::Reader::CMap.new(binread(filename))
Expand Down
2 changes: 1 addition & 1 deletion spec/support/reader_spec_helper.rb
Expand Up @@ -16,7 +16,7 @@ def pdf_spec_file(base)
end
end

# a safe method for opening a file and loading the contents as
# a safe method for opening a file and loading the contents as
# a binary string.
#
def binread(filename)
Expand Down

0 comments on commit a8c545c

Please sign in to comment.