Skip to content

Commit

Permalink
introduction labelling
Browse files Browse the repository at this point in the history
  • Loading branch information
opoudjis committed Aug 8, 2018
1 parent 9433232 commit cb493d2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion lib/isodoc/iso/html_convert.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def implicit_reference(b)

def introduction(isoxml, out)
f = isoxml.at(ns("//introduction")) || return
num = f.at(ns(".//clause")) ? "0." : nil
num = f.at(ns(".//clause")) ? "0" : nil
title_attr = { class: "IntroTitle" }
page_break(out)
out.div **{ class: "Section3", id: f["id"] } do |div|
Expand Down
2 changes: 1 addition & 1 deletion lib/isodoc/iso/word_convert.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def colophon(body, docxml)

def introduction(isoxml, out)
f = isoxml.at(ns("//introduction")) || return
num = f.at(ns(".//clause")) ? "0." : nil
num = f.at(ns(".//clause")) ? "0" : nil
title_attr = { class: "IntroTitle" }
page_break(out)
out.div **{ class: "Section3", id: f["id"] } do |div|
Expand Down
14 changes: 7 additions & 7 deletions spec/assets/iso.doc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
MIME-Version: 1.0
Content-Type: multipart/related; boundary="----=_NextPart_e6a20bd6.2b96.47b3"
Content-Type: multipart/related; boundary="----=_NextPart_a3bea090.aea4.42f8"

------=_NextPart_e6a20bd6.2b96.47b3
------=_NextPart_a3bea090.aea4.42f8
Content-Location: file:///C:/Doc/spec/assets/iso.htm
Content-Type: text/html; charset="utf-8"

Expand Down Expand Up @@ -2069,11 +2069,11 @@ Switzerland<p class="MsoNormal"></p></span></p>
<p class="MsoToc1"><span lang="EN-GB" xml:lang="EN-GB"><span style="mso-element:field-begin"></span><span style="mso-spacerun:yes">&#xA0;</span>TOC
\o "1-2" \h \z \u <span style="mso-element:field-separator"></span></span>
<span class="MsoHyperlink"><span lang="EN-GB" style="mso-no-proof:yes" xml:lang="EN-GB">
<a href="#_Toc747491299">Foreword<span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB">
<a href="#_Toc981037100">Foreword<span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB">
<span style="mso-tab-count:1 dotted">. </span>
</span><span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB">
<span style="mso-element:field-begin"></span></span>
<span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB"> PAGEREF _Toc747491299 \h </span>
<span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB"> PAGEREF _Toc981037100 \h </span>
<span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB"><span style="mso-element:field-separator"></span></span><span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB">1</span>
<span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB"></span><span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB"><span style="mso-element:field-end"></span></span></a></span></span></p>

Expand Down Expand Up @@ -2106,7 +2106,7 @@ Switzerland<p class="MsoNormal"></p></span></p>
</html>


------=_NextPart_e6a20bd6.2b96.47b3
------=_NextPart_a3bea090.aea4.42f8
Content-Location: file:///C:/Doc/spec/assets/iso_files/filelist.xml
Content-Transfer-Encoding: base64
Content-Type: application/xml
Expand All @@ -2116,7 +2116,7 @@ ICAgICAgIDxvOk1haW5GaWxlIEhSZWY9Ii4uL3NwZWMvYXNzZXRzL2lzby5odG0iLz4gIDxvOkZp
bGUgSFJlZj0iZmlsZWxpc3QueG1sIi8+CiAgPG86RmlsZSBIUmVmPSJoZWFkZXIuaHRtbCIvPgo8
L3htbD4K

------=_NextPart_e6a20bd6.2b96.47b3
------=_NextPart_a3bea090.aea4.42f8
Content-Location: file:///C:/Doc/spec/assets/iso_files/header.html
Content-Transfer-Encoding: base64
Content-Type: text/html charset="utf-8"
Expand Down Expand Up @@ -2309,4 +2309,4 @@ cD4NCg0KPHAgY2xhc3M9TXNvRm9vdGVyPjxzcGFuIGxhbmc9RU4tQVUgc3R5bGU9J2ZvbnQtc2l6
ZToxMC4wcHQ7Jz7CqQ0KJm5ic3A7Jm5ic3A74oCTIEFsbCByaWdodHMgcmVzZXJ2ZWQ8bzpwPjwv
bzpwPjwvc3Bhbj48L3A+DQoNCjwvZGl2Pg0KDQoNCg0KPC9ib2R5Pg0KDQo8L2h0bWw+DQo=

------=_NextPart_e6a20bd6.2b96.47b3--
------=_NextPart_a3bea090.aea4.42f8--

0 comments on commit cb493d2

Please sign in to comment.