metanorma-mpfd 0.1.1 → 0.1.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: 16aa0d3330809464979d425181b5ecbdaa5d24b5f38a4c6ed29cfc7376291b28
4
- data.tar.gz: 05b5d56e2ab0edbbf69373c85ddd1bd8070dc06683fe15214ad04eca897abe4c
3
+ metadata.gz: ec1ff06462b4ba997c1633e1ee3e0d9b97691f1a29e7ea29e8884d04b4cd6be1
4
+ data.tar.gz: b6ab1fd59e16b5e732d87d59b5b56e452cfe0757cfa48ca2bef1e046af68c0aa
5
5
  SHA512:
6
- metadata.gz: 92d22d04a12532be21d51535b68da3cf3d4df3a49cf0c9fd853975e4479fa30ad34bb5e1329c59d6f22ff991371c1017e91f8b09a0c70654dfc2c0da038909b8
7
- data.tar.gz: 5b77a57e4e14e78ba2fbb34c4def5cf53ae7871f5987cd16a9ca1b3ceeb0f5f52c6c87edcfe7e2847845d7a78783f9a0e40b47ba0f8a4f124ec5c1554c5d4ccf
6
+ metadata.gz: 8127483942c5bd271e86b4b667451cc41410250553ff84442c2272c34bc1a203577d2ffe4d426a41e172a560bf4008c1c7906619fafc9c1e8e1e4d52fda0d9d9
7
+ data.tar.gz: 89ebb41872f5baff594b5a166b43d0cc3c45288aeaf65fec7b92c3e57d4b931099b034febeb8b598595d275ab82e056953ce3263a400d7497aff8458736c70be
@@ -47,6 +47,8 @@ module Asciidoctor
47
47
  elsif @biblio then bibliography_parse(a, xml, node)
48
48
  elsif node.attr("style") == "bibliography" && node.level == 1
49
49
  bibliography_parse(a, xml, node)
50
+ elsif node.attr("style") == "abstract"
51
+ abstract_parse(a, xml, node)
50
52
  elsif node.attr("style") == "appendix" && node.level == 1
51
53
  annex_parse(a, xml, node)
52
54
  else
@@ -74,7 +76,7 @@ module Asciidoctor
74
76
  end
75
77
 
76
78
  def make_preface(x, s)
77
- if x.at("//foreword | //introduction | //terms | //clause[@preface]")
79
+ if x.at("//foreword | //introduction | //terms | //abstract | //clause[@preface]")
78
80
  preface = s.add_previous_sibling("<preface/>").first
79
81
  move_sections_into_preface(x, preface)
80
82
  end
@@ -1235,3 +1235,10 @@ a.anchorjs-link:hover {
1235
1235
  }
1236
1236
 
1237
1237
  }
1238
+
1239
+ @media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
1240
+ .main-section h1 {margin-left:14px;}
1241
+ .main-section h2, h3, h4, ol, ul, p, .ms-table-wrap {margin-left:75px;}
1242
+ .main-section li p {margin-left:5px;}
1243
+ .main-section li {margin-left:25px;}
1244
+ }
@@ -80,3 +80,12 @@ $('#toggle').on('click', function(){
80
80
  anchors.add('h1, h2, h3, h4');
81
81
  </script>
82
82
 
83
+ <!--IE fix patch: start -->
84
+ <script>
85
+ if (navigator.userAgent.indexOf('MSIE') !== -1 || navigator.appVersion.indexOf('Trident/') > -1) {
86
+ $(document).ready(function() {
87
+ $('table', '.main-section').wrap('<div class="ms-table-wrap"></div>');
88
+ });
89
+ };
90
+ </script>
91
+ <!--IE fix patch: end -->
@@ -136,6 +136,7 @@ module IsoDoc
136
136
  def make_body2(body, docxml)
137
137
  body.div **{ class: "WordSection2" } do |div2|
138
138
  info docxml, div2
139
+ abstract docxml, div2
139
140
  foreword docxml, div2
140
141
  introduction docxml, div2
141
142
  terms_defs docxml, div2, 0
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Mpfd
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-mpfd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-11-12 00:00:00.000000000 Z
11
+ date: 2018-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: asciidoctor