metanorma-ieee 1.4.1 → 1.4.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: aecbb8c2f4ed7d03395b1d8baaf00ec0a898920ffd639cbb99fec8e0c6d2661f
4
- data.tar.gz: e386414996bd3953b559dabb1111a58b4cae101d7e78f205d5e0304c9f329da8
3
+ metadata.gz: 84f89392ffbb51084bb77406a1816434743815a156fad52d967b22f2c2fe2636
4
+ data.tar.gz: 2511288d92f9830064ff48ade3a15e525d33152bf62b4f09f9f8ac1be2c81489
5
5
  SHA512:
6
- metadata.gz: 661bcfc02d6c9cff5c7def48c6a8a5daab3342e694f27e69d019e41026763656d90b27729660bd1c61d3ae854a43dd11fb55a6c4ea01a04c862d057b1be7581e
7
- data.tar.gz: 8bd0356d64e2f39c45c2b25b3207a60edf264e1ffac759d8e77df9590b5db0f36cd3037bed4a4dc9b1af1344c3118ed04bcbb55b63c3561f40c78517ca69de35
6
+ metadata.gz: 2c6d09554d432784c98a3093ba3bf7c127c137a794fb0c9903913777f68c7527b60f1b526acccaa173acf81fa9f538cf77e98ee361d00fb30be1a4dcfba557ba
7
+ data.tar.gz: 96229ab2555cb20ce7167667edd7eb8dee63072af649251c25e92c1a491ddca70595b14bf6e94b034ea40bb45ced96bf1a6dbb5f5601477aeac6aed29c864cd4
@@ -1,16 +1,18 @@
1
1
  class Html2Doc
2
2
  class Ieee < ::Html2Doc
3
- def process_footnote_texts(docxml, footnotes)
3
+ def process_footnote_texts(docxml, footnotes, indexes)
4
4
  body = docxml.at("//body")
5
5
  list = body.add_child("<div style='mso-element:footnote-list'/>")
6
6
  footnotes.each_with_index do |f, i|
7
7
  if i.zero?
8
- fn = list.first.add_child(footnote_container_nofn(docxml, i + 1))
8
+ fn = list.first.add_child(footnote_container_nofn(docxml, indexes[f["id"]]))
9
9
  f.parent = fn.first
10
+ f["id"] = ""
10
11
  footnote_div_to_p_unstyled(f)
11
12
  else
12
- fn = list.first.add_child(footnote_container(docxml, i + 1))
13
+ fn = list.first.add_child(footnote_container(docxml, indexes[f["id"]]))
13
14
  f.parent = fn.first
15
+ f["id"] = ""
14
16
  footnote_div_to_p(f)
15
17
  end
16
18
  end
@@ -36,7 +38,6 @@ class Html2Doc
36
38
  end
37
39
 
38
40
  def transform_footnote_text(note)
39
- note["id"] = ""
40
41
  note.xpath(".//div").each { |div| div.replace(div.children) }
41
42
  note.xpath(".//aside | .//p").each do |p|
42
43
  p.name = "p"
@@ -318,6 +318,13 @@ h6:hover > a.anchor,
318
318
  padding: 0;
319
319
  }
320
320
 
321
+ svg {
322
+ width: 100%;
323
+ padding-bottom: 92%;
324
+ height: 1px;
325
+ overflow: visible;
326
+ }
327
+
321
328
  #standard-band {
322
329
  background-color: #0AC442;
323
330
  }