metanorma-ieee 1.5.1 → 1.5.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 82137fa7e1e6eb0c4f40b23a8e0c62a597e8943cebb27665598dfaded221ab30
4
- data.tar.gz: 94d546f26e65755a9f9d3cf70ecbc1feb97a5fad68f1ada22184e2edd4f6c1a2
3
+ metadata.gz: 68972c5486baf914108170d5e90570275fde3b68634a6f76fa2401516d5ed116
4
+ data.tar.gz: de708600107ef15b24b1547ccc26492ab6a1b18d2ae911ceee26aae41a02e84a
5
5
  SHA512:
6
- metadata.gz: fa81b9d4e96409b12e3a8079dd5e342ddf1b933a3b8544a10c9d8b536c2521623abc1504ee290061e30bec1838180828fea94c72a1872009993f47238ab7b116
7
- data.tar.gz: 900bc942fa1bbbbba7113eb4f97385d325ae835dfbf7d5179ea8d6a37ca7f8542237beb528b2751f7313d61ee6026bbb92b89d598d23666e830e02a0f9c89ca8
6
+ metadata.gz: 5a8260fa922d5323a746be177bb4fc3bb31229bc8313d1a72bd029439788fffc300fe44ac6bfe7050883ad4b5f65aab94232857b8ef9ce6605c9eca07b4e980d
7
+ data.tar.gz: c2a4c59b10dd5bdb6f2ff0eff2006e7a5b9c4e55bea816b6d6651a01f4612b87347eb96fb0de8ce636a500c5216aabb3fd1e29a773a4d9d2684bd0350d796303
data/README.adoc CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  image:https://img.shields.io/gem/v/metanorma-ieee.svg["Gem Version", link="https://rubygems.org/gems/metanorma-ieee"]
4
4
  image:https://github.com/metanorma/metanorma-ieee/workflows/rake/badge.svg["Build Status", link="https://github.com/metanorma/metanorma-ieee/actions?workflow=rake"]
5
- image:https://codeclimate.com/github/metanorma/metanorma-ieee/badges/gpa.svg["Code Climate", link="https://codeclimate.com/github/metanorma/metanorma-ieee"]
5
+ // image:https://codeclimate.com/github/metanorma/metanorma-ieee/badges/gpa.svg["Code Climate", link="https://codeclimate.com/github/metanorma/metanorma-ieee"]
6
6
  image:https://img.shields.io/github/issues-pr-raw/metanorma/metanorma-ieee.svg["Pull Requests", link="https://github.com/metanorma/metanorma-ieee/pulls"]
7
7
  image:https://img.shields.io/github/commits-since/metanorma/metanorma-ieee/latest.svg["Commits since latest",link="https://github.com/metanorma/metanorma-ieee/releases"]
8
8
 
@@ -1410,6 +1410,16 @@ div.zzHelp {
1410
1410
  text-align: left;
1411
1411
  }
1412
1412
 
1413
+ /* Boilerplate */
1414
+ p.officeholder {
1415
+ margin: 0px;
1416
+ }
1417
+
1418
+ /* Target the first p.officeholder in a series - when it's NOT preceded by another p.officeholder */
1419
+ p.officeholder:not(p.officeholder + p.officeholder) {
1420
+ margin-bottom: 0px;
1421
+ }
1422
+
1413
1423
  /* Collapse TOC */
1414
1424
  .collapse-group {
1415
1425
  display: flex;
@@ -717,6 +717,17 @@ div.zzHelp {
717
717
  text-align: left;
718
718
  }
719
719
 
720
+ /* Boilerplate */
721
+
722
+ p.officeholder {
723
+ margin: 0px;
724
+ }
725
+
726
+ /* Target the first p.officeholder in a series - when it's NOT preceded by another p.officeholder */
727
+ p.officeholder:not(p.officeholder + p.officeholder) {
728
+ margin-bottom: 0px;
729
+ }
730
+
720
731
  /* Collapse TOC */
721
732
 
722
733
  .collapse-group {
@@ -41,7 +41,10 @@ module IsoDoc
41
41
  end
42
42
 
43
43
  def para_type_strip(html)
44
- html.xpath("//p[@type]").each { |p| p.delete("type") }
44
+ html.xpath("//p[@type]").each do |p|
45
+ p["type"] == "officeholder" and p["class"] = "officeholder"
46
+ p.delete("type")
47
+ end
45
48
  html
46
49
  end
47
50