hassanakbar4 / tractive-test

0 stars 0 forks source link

Non-contiguous URL numbers in text format #334

Closed hassanakbar4 closed 2 years ago

hassanakbar4 commented 7 years ago

component_Version 2 cli txt resolution_overtaken by events type_defect | by jyasskin@chromium.org


The attached XML (generated via kramdown-rfc2629 from the attached markdown) produces URLs [1] and [3], but not [2]. The three links are:

<t><eref target="https://example.com/link1">Link 1</eref></t>
<t><eref target="https://example.com/link2">https://example.com/link2</eref></t>
<t><eref target="mailto:link2@example.com">link2@example.com</eref></t>

And from that xml2rfc test.xml (version 2.6.1 and online) generates the following text:

1.  Introduction

   Link 1 [1]

   https://example.com/link2

   link2@example.com [3]

2.  References

2.1.  URIs

   [1] https://example.com/link1

   [3] mailto:link2@example.com

Issue migrated from trac:334 at 2021-10-20 18:24:51 +0500

hassanakbar4 commented 7 years ago

@{"email"=>"jyasskin@chromium.org", "name"=>nil, "username"=>nil} uploaded file test.xml (1.5 KiB)

XML source

hassanakbar4 commented 7 years ago

@{"email"=>"jyasskin@chromium.org", "name"=>nil, "username"=>nil} uploaded file test.md (0.4 KiB)

kramdown-rfc2629 source

hassanakbar4 commented 7 years ago

@{"email"=>"henrik@levkowetz.com", "name"=>nil, "username"=>nil} commented


I see 2 possible resolutions of this ticket:

  1. Fix the bracketed numbers for entries in the URIs section to be contigous, with only the 2 entries marked [1] and [3] above shown, or

  2. Add an entry for link2 to the URIs section, with a bracketed reference [2] to it in the text.

I propose to resolve this as in 2.

Thoughts?

hassanakbar4 commented 7 years ago

@{"email"=>"henrik@levkowetz.com", "name"=>nil, "username"=>nil} commented


From [2378]:

Include erefs with text equal to the URL in the URIs section. See issue #334.