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 +1 -1
- data/fn_document.gemspec +1 -1
- data/lib/fn/pdf/node/create_textflow.rb +13 -7
- data/lib/fn/pdf/struct.rb +1 -1
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.9.
|
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.
|
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"
|
105
|
-
|
106
|
-
when "
|
107
|
-
|
108
|
-
when "
|
109
|
-
|
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 << "• "
|
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"
|
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
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:
|
4
|
+
hash: 45
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 9
|
9
|
-
-
|
10
|
-
version: 0.9.
|
9
|
+
- 11
|
10
|
+
version: 0.9.11
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Nathan Colgate Clark
|