swordfish 0.0.8 → 0.0.9
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.
- checksums.yaml +8 -8
- data/lib/swordfish/formats/docx/parser.rb +3 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YzM1YzZjZGYwYTA1MmQwYmExZWY0MGM4ZDYwMDIyM2Y3NDE5Nzc2MA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NmJmZTI4ODNiMDgyOGY5ZjQyZmU0MGVmZjgxMzJhZjI4ZGM2MTRlNw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MzBjODA5NDczMTMxZDQyYjUzYTY2NDVlNjExODYxYjJjNWU0MzZlZmExNDA4
|
10
|
+
ZDhkMWMwZjEyZWU1NTQxODYyNjdlODZkZTQxNDVkOTFjZDFlNTE2ZGVkZTIz
|
11
|
+
MWY3NzM5MjhmNjhjYjM5MDhhMGU3YWM2ZjY0ODY0ZjNkZTFjMzU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MDM1NmZlZTFkYzU5Y2FiYzYyMTNjMmI2MTFlZjE4YTYyY2FhODg4NDllZDhk
|
14
|
+
NzlkMzdlNDY0OGRkNjVlNTM2MzFmMTZlZTY4MWZhYzk0OWM3YmVjNDhmOWY4
|
15
|
+
YWYzNzNhOTUwMzdlOWJmNWY0MmUyMTQ0ZDBmNmNjOWEwN2ZjMGM=
|
@@ -139,7 +139,8 @@ module Swordfish
|
|
139
139
|
# If the build buffer is empty, this is a new list
|
140
140
|
unless @buffer
|
141
141
|
@buffer = Swordfish::Node::List.new
|
142
|
-
|
142
|
+
# default to bullet in case of bad numbering reference
|
143
|
+
@buffer.stylize @numbering.fetch(numbering_scheme, {}).fetch(level, "bullet").to_sym
|
143
144
|
@buffer_initial_value = level # Lists may have an arbitrary initial level
|
144
145
|
end
|
145
146
|
|
@@ -156,7 +157,7 @@ module Swordfish
|
|
156
157
|
elsif @buffer.depth_of_final_node < level
|
157
158
|
# Add new nested list
|
158
159
|
target = @buffer
|
159
|
-
(level - @buffer_initial_value- 1).times do
|
160
|
+
(level - @buffer_initial_value - 1).times do
|
160
161
|
target = target.last_list_item.nested_list
|
161
162
|
end
|
162
163
|
list = Swordfish::Node::List.new
|