asciidoctor-dita-topic 1.3.3 → 1.3.4

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/dita-topic.rb +16 -4
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4fc29eafdbe1a2cdf7ef447e252ecdcabc80af754902559bcf228e38e3b2fe04
4
- data.tar.gz: 3ebd2721f248a9ad8dc20d428bfeb0fe6b0f1f74e8b9a24b2e62860b2bfc140f
3
+ metadata.gz: 62056b90729ed2ccfcfad7a3fa3613938cf943c67b535d4f6653b1aa009a79a9
4
+ data.tar.gz: 558a40909a4eea3b5a1bae2327e12c3116d679d5fbbd71cf4f70f990fd23fabf
5
5
  SHA512:
6
- metadata.gz: f5da5464ce466a101f87d0a047f87debb40bbb4a5ac185a5702a422e68cc9e6c4ba6bb5d5599acd38393e0e7f29824296a3a09391de91f503eecc7740f721801
7
- data.tar.gz: cb90250840fa7fa9d8ac808dc1bbdec7b85f8f2a2378cad970c95e6705f3456331478571fc5616b365dc0dda552f800d68628f507bebb92857761b3d560866d9
6
+ metadata.gz: 84b3e6f51d7712fb8974fce8c4c3f184b90f1853cf442306ec24d8ab3a32e01f49ee9cec24885baeb26eafb6f7837a76117ffce14f4c7187436f153209864013
7
+ data.tar.gz: 2c53bb543c270dcc48597b8cc9c16e914ec62393dec275064ae6e5423ed7b8c4898e3df59ffa83145779ef9f8124555b1f6cae5c2a51e6d539ac39356276ea6a
data/lib/dita-topic.rb CHANGED
@@ -202,8 +202,11 @@ class DitaTopic < Asciidoctor::Converter::Base
202
202
 
203
203
  # Process individual list items:
204
204
  node.items.each do |terms, description|
205
+ # Compose the metadata attributes:
206
+ metadata, terms[0].text = extract_attributes terms[0].text
207
+
205
208
  # Open the definition entry:
206
- result << %(<dlentry>)
209
+ result << %(<dlentry#{metadata}>)
207
210
 
208
211
  # Process individual terms:
209
212
  terms.each do |item|
@@ -705,8 +708,11 @@ class DitaTopic < Asciidoctor::Converter::Base
705
708
 
706
709
  # Process each row:
707
710
  rows.each do |row|
711
+ # Compose the metadata attributes:
712
+ metadata, row[0].text = extract_attributes row[0].text
713
+
708
714
  # Open the row:
709
- result << %(<row>)
715
+ result << %(<row#{metadata}>)
710
716
 
711
717
  # Process each cell:
712
718
  row.each do |cell|
@@ -857,8 +863,11 @@ class DitaTopic < Asciidoctor::Converter::Base
857
863
 
858
864
  # Process individual list items:
859
865
  node.items.each do |terms, description|
866
+ # Compose the metadata attributes:
867
+ metadata, terms[0].text = extract_attributes terms[0].text
868
+
860
869
  # Open the list item:
861
- result << %(<li>)
870
+ result << %(<li#{metadata}>)
862
871
 
863
872
  # Process individual terms:
864
873
  terms.each do |item|
@@ -897,8 +906,11 @@ class DitaTopic < Asciidoctor::Converter::Base
897
906
 
898
907
  # Process individual list items:
899
908
  node.items.each do |terms, description|
909
+ # Compose the metadata attributes:
910
+ metadata, terms[0].text = extract_attributes terms[0].text
911
+
900
912
  # Open the table row:
901
- result << %(<row>)
913
+ result << %(<row#{metadata}>)
902
914
 
903
915
  # Check the number of terms to process:
904
916
  if terms.count == 1
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: asciidoctor-dita-topic
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.3
4
+ version: 1.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jaromir Hradilek
@@ -96,7 +96,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
96
96
  requirements:
97
97
  - - ">="
98
98
  - !ruby/object:Gem::Version
99
- version: '0'
99
+ version: '3.0'
100
100
  required_rubygems_version: !ruby/object:Gem::Requirement
101
101
  requirements:
102
102
  - - ">="