Skip to content

Commit

Permalink
normalise doctype: metanorma/mn-samples-mpfa#44
Browse files Browse the repository at this point in the history
  • Loading branch information
opoudjis committed Aug 15, 2020
1 parent 197f764 commit 8560a15
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions lib/asciidoctor/ietf/converter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ def outputs(node, ret)
end

def doctype(node)
ret = node.attr("doctype")
ret = "Internet-Draft" if ret == "article"
ret = super
ret = "internet-draft" if ret == "article"
ret
end

Expand Down
4 changes: 2 additions & 2 deletions spec/asciidoctor/base_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@
<keyword>b</keyword>
<keyword>c</keyword>
<ext>
<doctype>RFC</doctype>
<doctype>rfc</doctype>
<editorialgroup>
<workgroup number='3' type='C'>WG</workgroup>
<workgroup number='31' type='C1'>WG1</workgroup>
Expand Down Expand Up @@ -535,7 +535,7 @@
<number>111</number>
</series>
<ext>
<doctype>Internet-Draft</doctype>
<doctype>internet-draft</doctype>
<pi>
<toc>yes</toc>
</pi>
Expand Down
2 changes: 1 addition & 1 deletion spec/asciidoctor/blocks_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
<title>IETF</title>
</series>
<ext>
<doctype>Internet-Draft</doctype>
<doctype>internet-draft</doctype>
<pi>
<toc>yes</toc>
</pi>
Expand Down
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def dtd_absolute_path
<title>IETF</title>
</series>
<ext>
<doctype>Internet-Draft</doctype>
<doctype>internet-draft</doctype>
<pi>
<toc>yes</toc>
</pi>
Expand Down

0 comments on commit 8560a15

Please sign in to comment.