hassanakbar4 / tractive-test

0 stars 0 forks source link

<postamble> really deprecated? #355

Closed hassanakbar4 closed 3 years ago

hassanakbar4 commented 6 years ago

component_Version_3_cli_txt resolution_worksforme type_defect | by miek@miek.nl


Seems to be, by far the best way to type set a caption.

Now I need to generated a paragraph after the figure, that seems strange. Esp because the content AST I'm parsing has the caption as a child of the figure.

(not per se a rendering issue - or maybe haven't tried it because of this problem)


Issue migrated from trac:355 at 2021-10-20 18:27:20 +0500

hassanakbar4 commented 6 years ago

@{"email"=>"miek@miek.nl", "name"=>nil, "username"=>nil} commented


Ok, so this

<figure>
<artwork>println(&quot;some code&quot;)
</artwork>
<postamble>That's some nice code.
</postamble>
</figure>

doesn't get a deprecated warning, (yeah!), but is text rendered to


   println("some code")

   That's some nice code.

I was, at minimum, promised a figure counter :-): "Contains a figure with a caption with the figure number".

There more I look at the test in 7991, the less sense it makes; are captions and figure counters supported or not?

hassanakbar4 commented 6 years ago

@{"email"=>"miek@miek.nl", "name"=>nil, "username"=>nil} commented


Adding a tag as mentioned in #356 and having this xml:

<figure>
  <artwork>
    <name>Artwork 1</name>
    println(&quot;some code&quot;)
</artwork>
<postamble>That's some nice code.
</postamble>
</figure>
</section>

Leads to this being generated:


   (Artwork only available as None: <None>)

   That's some nice code.

Think I've put the XML in the wrong spot, so FYI.

hassanakbar4 commented 6 years ago

@{"email"=>"miek@miek.nl", "name"=>nil, "username"=>nil} commented


yeah, having the correct XML, where is a child of figure:

<figure>
    <name>Artwork 1</name>
  <artwork>println(&quot;some code&quot;)
</artwork>
<postamble>That's some nice code.
</postamble>
</figure>
</section>

creates

   println("some code")

                            Figure 1: Artwork 1

   That's some nice code.

probably should use . So is basically the new ? That not clear from the spec (if it is)

hassanakbar4 commented 6 years ago

@{"email"=>"henrik@levkowetz.com", "name"=>nil, "username"=>nil} changed status from new to closed

hassanakbar4 commented 6 years ago

@{"email"=>"henrik@levkowetz.com", "name"=>nil, "username"=>nil} changed resolution from ` toworksforme`

hassanakbar4 commented 6 years ago

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


Mmm. I don't see anything I need to change in xml2rfc here. Please re-open if that's not right.