fn_document 0.9.10 → 0.9.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.9.10
1
+ 0.9.11
data/fn_document.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "fn_document"
8
- s.version = "0.9.10"
8
+ s.version = "0.9.11"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Nathan Colgate Clark", "Kyle Maxwell"]
@@ -101,12 +101,17 @@ module FN
101
101
  buffer << node.to_s.gsub(NL, '')
102
102
  elsif node.element?
103
103
  case node.name.downcase
104
- when "br"; buffer << "<nextline>"
105
- when "b"; options["bold"] = true
106
- when "i"; options["italic"] = true
107
- when "u"; options["underline"] = true
108
- when "li"; buffer << "&bull;&nbsp;"
109
- when "font";
104
+ when "br"
105
+ buffer << "<nextline>"
106
+ when "b"
107
+ options["bold"] = true
108
+ when "i"
109
+ options["italic"] = true
110
+ when "u"
111
+ options["underline"] = true
112
+ when "li"
113
+ buffer << "&bull;&nbsp;"
114
+ when "font"
110
115
  options["size"] = node["size"] if node["size"]
111
116
  options["face"] = node["face"] if node["face"]
112
117
  options["color"] = node["color"] if node["color"]
@@ -119,7 +124,8 @@ module FN
119
124
  node.children.each{|c| format(c, buffer, options)}
120
125
 
121
126
  case node.name.downcase
122
- when "p", "li"; buffer << "<nextparagraph>"
127
+ when "p", "li"
128
+ buffer << "<nextparagraph>"
123
129
  end
124
130
  else
125
131
  raise "unhandled node type"
data/lib/fn/pdf/struct.rb CHANGED
@@ -16,7 +16,7 @@ module FN
16
16
  def method_missing(*a, &b)
17
17
  a.map! do |elem|
18
18
  case elem
19
- when Hash:
19
+ when Hash
20
20
  elem.inject([]) {|m, (k, v)|
21
21
  m << "#{k}={#{v}}"
22
22
  }.join(" ")
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fn_document
3
3
  version: !ruby/object:Gem::Version
4
- hash: 47
4
+ hash: 45
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 9
9
- - 10
10
- version: 0.9.10
9
+ - 11
10
+ version: 0.9.11
11
11
  platform: ruby
12
12
  authors:
13
13
  - Nathan Colgate Clark