kramdown-rfc2629 1.4.1 → 1.4.2

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: e810a295696230d06daa18981cff3c92ad0913175b717027788ee41351d4df6f
4
- data.tar.gz: 5d5db17408cc47211883b0d95071139d47fb7fd8d8391cb9eff59217e81c330d
3
+ metadata.gz: fec107f9381d395a6a6000d553ed820c673ed113d4d7f652f16dfef98aebda64
4
+ data.tar.gz: 01ccac9bef6597540b689ae5a31600509d18adb489d56dc833940626397df7b0
5
5
  SHA512:
6
- metadata.gz: 30d01f719beb7b67932396d4e28f6e1c4f9446029e04555706089e33615c305a673443922927136dad47f974c5c45cd871655a778c97347fa40a6f5454df7970
7
- data.tar.gz: ef7be0d8a0b914f67a871e813533ad5eee7280bb31d67047d688ddf164ce124763653980b6c097f4be596be4211d32062efae15e5726d90618aca709cc63a462
6
+ metadata.gz: d926cdd5b45667c0e70bf6c00485795e97993b64f022199443a03c48ad3edca2078657274302dd93ed657bff0fd1d703dfe951981bfdb3d81ac4c86c033ef759
7
+ data.tar.gz: 21c2a803dd8203d23f0633e0ac9d254b857c4e84af378f63ae1160d48612d58b556b425c26f83e6fe211315d1e2ee3e9b520bab33fa5ecb3bfcdd33e10dddd1f
data/bin/kdrfc CHANGED
@@ -127,6 +127,9 @@ BANNER
127
127
  opts.on("-p", "--[no-]prep", "Convert xml to prepped xml") do |v|
128
128
  $options.prep = v
129
129
  end
130
+ opts.on("-P", "--[no-]pdf", "Convert xml to PDF") do |v|
131
+ $options.pdf = v
132
+ end
130
133
  opts.on("-c", "--[no-]convert", "Convert xml to v3 xml") do |v|
131
134
  $options.v2v3 = v
132
135
  end
@@ -150,6 +153,7 @@ def process_the_xml(fn, base)
150
153
  process_xml(fn, "#{base}.v2v3.xml", "--v2v3") if $options.v2v3
151
154
  process_xml(fn, "#{base}.txt") if $options.txt || $options.idnits
152
155
  process_xml(fn, "#{base}.html", "--html") if $options.html
156
+ process_xml(fn, "#{base}.pdf", "--pdf") if $options.pdf
153
157
  run_idnits("#{base}.txt") if $options.idnits
154
158
  end
155
159
 
@@ -1,6 +1,6 @@
1
1
  spec = Gem::Specification.new do |s|
2
2
  s.name = 'kramdown-rfc2629'
3
- s.version = '1.4.1'
3
+ s.version = '1.4.2'
4
4
  s.summary = "Kramdown extension for generating RFC 7749 XML."
5
5
  s.description = %{An RFC7749 (XML2RFC) generating backend for Thomas Leitner's
6
6
  "kramdown" markdown parser. Mostly useful for RFC writers.}
@@ -399,7 +399,7 @@ COLORS
399
399
  # warn ["goat:", result1.inspect]
400
400
  file.unlink
401
401
  result1 = svg_clean(result1) unless t == "goat"
402
- result1, err, _s = Open3.capture3("svgcheck -qa", stdin_data: result1);
402
+ result1, err, _s = Open3.capture3("svgcheck -NXqa", stdin_data: result1);
403
403
  capture_croak("svgcheck", err)
404
404
  # warn ["svgcheck:", result1.inspect]
405
405
  if result1 == ''
@@ -698,7 +698,11 @@ COLORS
698
698
  end
699
699
 
700
700
  def convert_br(el, indent, opts)
701
- "<vspace />"
701
+ if $options.v3
702
+ "<br />"
703
+ else
704
+ "<vspace />"
705
+ end
702
706
  end
703
707
 
704
708
  def convert_a(el, indent, opts)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kramdown-rfc2629
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.1
4
+ version: 1.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Carsten Bormann
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-22 00:00:00.000000000 Z
11
+ date: 2021-04-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: kramdown