ooxml_parser 0.34.1 → 0.34.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9dc34421044dd53e46d0d5c355dac61acfe6bbb825381cb4c1d0aca2b5b78daf
4
- data.tar.gz: d7ef26c1cdc5d94a7c355ae64437f23663d5c1579d651427bbac0bf83a03964e
3
+ metadata.gz: eb6ab2462b53e26803ec7441c3f9b4a5217003952535f1f8578824d310c3aa78
4
+ data.tar.gz: 90610d1f3650f86f70f096060f3a5b20a2b54de950c36bc4cd7ef42bcc55ca77
5
5
  SHA512:
6
- metadata.gz: 358fb82db492d965faeb84fcb356d18db1e04c759bd17e2cb76398abe20b353e76fb7f4359c7235f2004f4acdc440c0b1fb8bddc8b0075c65f5832caca0d8c16
7
- data.tar.gz: e1d817d32dc5de38bb6ae960a50300068405fc079eb63f14c266a4cf472840f706e54586996b45ba80cb4af16c6615a05eafc56889a55f1289ea32fa1a551c66
6
+ metadata.gz: f71b9fd4e5156a6dd60335587a1164cddf107f2e99bdfbd413acaa59e1b55ed696ab63944254ad283860547710fe6a8346f56161fe503c61197388d11d7cff7b
7
+ data.tar.gz: 263fb808264d65c0ff6dfee7e8d1d3f88f9fe7f49233ac426a8447abbc57902d9fbe73ca29816b1e1e297cdd34e738449535a46fb4a63bfdbb2e32e0396de87e
@@ -34,7 +34,7 @@ module OoxmlParser
34
34
  .paragraph_properties_default
35
35
  .raw_node, 0)
36
36
  end
37
- if @styles&.document_defaults&.run_properties_default
37
+ if @styles&.document_defaults&.run_properties_default&.run_properties
38
38
  DocumentStructure.default_run_style = DocxParagraphRun.new(parent: self)
39
39
  .parse_properties(@styles
40
40
  .document_defaults
@@ -243,7 +243,10 @@ module OoxmlParser
243
243
  def ind
244
244
  return @ind if @ind != Indents.new
245
245
 
246
- root_object.styles&.default_style(:paragraph)&.paragraph_properties&.indent
246
+ indents_from_styles = root_object.styles&.default_style(:paragraph)&.paragraph_properties&.indent
247
+ return indents_from_styles if indents_from_styles
248
+
249
+ Indents.new
247
250
  end
248
251
 
249
252
  # Fill data from styles
@@ -4,6 +4,6 @@ module OoxmlParser
4
4
  # This module holds the RuboCop version information.
5
5
  module Version
6
6
  # [String] Version of Gem
7
- STRING = '0.34.1'
7
+ STRING = '0.34.2'
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ooxml_parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.34.1
4
+ version: 0.34.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - ONLYOFFICE
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2022-11-10 00:00:00.000000000 Z
13
+ date: 2022-11-30 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: nokogiri
@@ -625,7 +625,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
625
625
  - !ruby/object:Gem::Version
626
626
  version: '0'
627
627
  requirements: []
628
- rubygems_version: 3.3.25
628
+ rubygems_version: 3.3.26
629
629
  signing_key:
630
630
  specification_version: 4
631
631
  summary: OoxmlParser Gem