isodoc 3.6.10 → 3.6.11

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: fed66e2a61e720a0c22c4f6041860f7e536be1f5a491a0167de4102757464c21
4
- data.tar.gz: f8f81aa54bc89ce4ca860301a6aa86521dced4c2d9d274316db0472c6818d652
3
+ metadata.gz: 82d4992cdf6cebe7c3abf1b624847dc08586213fa57c7ce01e98d86d721cafbf
4
+ data.tar.gz: 0025b823e97539b471833bef1de6424d56d6b569343b6fd414de20b575f46e11
5
5
  SHA512:
6
- metadata.gz: 87b58c730fb10c9ecd78f7138918c919206d70740a4afb1718d395ccff540559ce6916ad2b32fc2e66d44dafc98ffed220fa21e371f8dfcb9052130454466216
7
- data.tar.gz: ba94cea74c951c49a48cee6bfa7481c35bb11dc19d70686c35176ffd58de52c916972acfcc88f652fbde4a4ee981fb3e6bc868f1454efb829951fc11a2a4d69e
6
+ metadata.gz: 1da939aa2ae8858bd2731a1fdbe0ddaf77cdc7d170655502d4b110ecb1e149ce5e6e9dc8c2cbed77389f2cc8c05977f72e445d8aa28b43276b89080c3a23b8ec
7
+ data.tar.gz: c59cfc4210201281df2a282b7822b5aa76371855db0840defb57f2afd50b617127be738d41b10a1c0512267cf4946ba9b0180eff2437b14b63b334b6d4b93c6d
@@ -1,3 +1,3 @@
1
1
  module IsoDoc
2
- VERSION = "3.6.10".freeze
2
+ VERSION = "3.6.11".freeze
3
3
  end
@@ -89,23 +89,19 @@ module IsoDoc
89
89
  # emitted to Word output (Word CSS is too inflexible), but a custom-class
90
90
  # table must still render as a normal bordered ISO table.
91
91
  # Exception: the internal `rouge-line-table` (sourcecode line numbering)
92
- # takes no ISO border and keeps its own class -- returning nil drops the
93
- # Word MsoISOTable override (see table_attrs) so the HTML super class
94
- # survives. metanorma/metanorma-pdfa#33
92
+ # and `dl` (a definition list rendered as a table) take no ISO border and
93
+ # keep their own class -- returning nil drops the Word MsoISOTable override
94
+ # (see table_attrs) so the HTML super class survives.
95
+ # metanorma/metanorma-pdfa#33
95
96
  def table_border_css(node)
96
97
  style = "border-spacing:0;border-width:1px;"
97
- node["style"] || node["plain"] == "true" ||
98
- node["class"] == "dl" and style = ""
99
- node["class"] == "rouge-line-table" and style = nil
98
+ node["style"] || node["plain"] == "true" and style = ""
99
+ %w(rouge-line-table dl).include?(node["class"]) and style = nil
100
100
  style
101
101
  end
102
102
 
103
- # `dl` (definition list rendered as a table) is unbordered like %plain, and
104
- # takes the plain MsoNormalTable Word style rather than the bordered
105
- # MsoISOTable.
106
103
  def table_class(node)
107
- node["plain"] == "true" || node["class"] == "dl" and
108
- return "MsoNormalTable"
104
+ node["plain"] == "true" and return "MsoNormalTable"
109
105
  node.text.length > 4000 ? "MsoISOTableBig" : "MsoISOTable"
110
106
  end
111
107
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: isodoc
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.6.10
4
+ version: 3.6.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.