metanorma-standoc 2.0.2 → 2.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (32) hide show
  1. checksums.yaml +4 -4
  2. data/lib/metanorma/standoc/base.rb +1 -1
  3. data/lib/metanorma/standoc/basicdoc.rng +5 -3
  4. data/lib/metanorma/standoc/biblio.rng +5 -3
  5. data/lib/metanorma/standoc/cleanup_image.rb +117 -3
  6. data/lib/metanorma/standoc/cleanup_ref.rb +1 -1
  7. data/lib/metanorma/standoc/cleanup_section.rb +1 -1
  8. data/lib/metanorma/standoc/cleanup_xref.rb +12 -5
  9. data/lib/metanorma/standoc/isodoc.rng +10 -0
  10. data/lib/metanorma/standoc/ref.rb +6 -1
  11. data/lib/metanorma/standoc/ref_utility.rb +2 -1
  12. data/lib/metanorma/standoc/term_lookup_cleanup.rb +8 -6
  13. data/lib/metanorma/standoc/terms.rb +10 -7
  14. data/lib/metanorma/standoc/validate.rb +7 -2
  15. data/lib/metanorma/standoc/version.rb +1 -1
  16. data/spec/metanorma/cleanup_blocks_spec.rb +136 -0
  17. data/spec/metanorma/cleanup_spec.rb +3 -3
  18. data/spec/metanorma/isobib_cache_spec.rb +2 -2
  19. data/spec/metanorma/macros_spec.rb +61 -0
  20. data/spec/metanorma/refs_spec.rb +505 -460
  21. data/spec/metanorma/section_spec.rb +1 -1
  22. data/spec/vcr_cassettes/dated_iso_ref_joint_iso_iec.yml +46 -46
  23. data/spec/vcr_cassettes/dated_iso_ref_joint_iso_iec1.yml +12 -12
  24. data/spec/vcr_cassettes/hide_refs.yml +98 -98
  25. data/spec/vcr_cassettes/isobib_get_123.yml +12 -12
  26. data/spec/vcr_cassettes/isobib_get_123_1.yml +25 -25
  27. data/spec/vcr_cassettes/isobib_get_123_1_fr.yml +35 -35
  28. data/spec/vcr_cassettes/isobib_get_123_2001.yml +12 -12
  29. data/spec/vcr_cassettes/isobib_get_124.yml +11 -11
  30. data/spec/vcr_cassettes/rfcbib_get_rfc8341.yml +14 -14
  31. data/spec/vcr_cassettes/separates_iev_citations_by_top_level_clause.yml +61 -51
  32. metadata +2 -2
@@ -1307,10 +1307,10 @@ RSpec.describe Metanorma::Standoc do
1307
1307
  <title>Clause 1.2</title>
1308
1308
  </clause>
1309
1309
  </clause>
1310
+ <floating-title id='_' depth='1' type='floating-title'>Another top-level floating title</floating-title>
1310
1311
  <clause id='_' inline-header='false' obligation='normative'>
1311
1312
  <title>Clause 2</title>
1312
1313
  </clause>
1313
- <floating-title id='_' depth='1' type='floating-title'>Another top-level floating title</floating-title>
1314
1314
  </sections>
1315
1315
  </standard-document>
1316
1316
  OUTPUT