Skip to content
Snippets Groups Projects
Commit 0431f933 authored by Ralph Giles's avatar Ralph Giles
Browse files

Improve Content Type figure placement.

With xml2rfc 2.3.9, I was getting the 'audio/ogg; codecs=opus'
figure hoisted out of the the containing paragraph, which was
very confusing.

I've tried to improve this by moving the surrounding paragraph
into the figure using the <preamble> and <postamble> tags, as
in the example in draft-mrose-writting-rfcs.

Unfortunately this still isn't perfect. Since the surrounding
paragraph is part of the figure we can't set align="center" on
the figure itself, and the processor seems to ignore it on the
artwork element. I've compensated by adding some leading
whitespace.
parent e7aa6cb9
No related branches found
No related tags found
No related merge requests found
......@@ -1219,16 +1219,18 @@ An "Ogg Opus file" consists of one or more sequentially multiplexed segments,
The RECOMMENDED mime-type for Ogg Opus files is "audio/ogg".
</t>
<t>
<figure>
<preamble>
If more specificity is desired, one MAY indicate the presence of Opus streams
using the codecs parameter defined in <xref target="RFC6381"/>, e.g.,
<figure align="center">
<artwork align="left"><![CDATA[
audio/ogg; codecs=opus
</preamble>
<artwork align="center"><![CDATA[
audio/ogg; codecs=opus
]]></artwork>
</figure>
<postamble>
for an Ogg Opus file.
</t>
</postamble>
</figure>
<t>
The RECOMMENDED filename extension for Ogg Opus files is '.opus'.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment