Opened 20 months ago

Last modified 19 months ago

#579 accepted defect

PDF, HTML output lacking whitespace between artwork and section heading

Reported by: mahoney@nostrum.com Owned by:
Priority: medium Milestone:
Component: v3 vocabulary Version:
Keywords: Cc: rfc-editor@rfc-editor.org

Description

The typical amount of whitespace before a section heading is not seen in the PDF and HTML output when the heading is immediately preceded by <artwork> that is not wrapped in a <figure> element:

          <artwork type="hex-dump"><![CDATA[
C2                        -- Tag 2
   49                     -- Byte string of length 9
      010000000000000000  -- Bytes content
]]></artwork>
        </section>
        <section anchor="fractions" toc="default">
          <name>Decimal Fractions and Bigfloats</name>

Please see the section heading for Section 3.4.4 in RFC 8949:

https://www.rfc-editor.org/in-notes/v3test/rfc8949.pdf
https://www.rfc-editor.org/in-notes/v3test/rfc8949.html
https://www.rfc-editor.org/in-notes/v3test/rfc8949.xml

Change History (4)

comment:1 Changed 20 months ago by henrik@levkowetz.com

Bah. In this case, the spacing is caused by the pilcrow, and the pilcrow doesn't show up in print media. The solution is probably going to be something more sophisticated that the current CSS in xml2rfc/data/xml2rfc.css:

@media print {
  a.pilcrow {
    display: none;
  }
}

in order to have the pilcrow create space after artwork also for @media print.

comment:2 Changed 20 months ago by mahoney@nostrum.com

This lack of whitespace is also seen between <artwork> and <t> in the PDF. See Section 6 in the following:

in-notes/v3test/rfc8967.pdf
in-notes/v3test/rfc8967.html
in-notes/v3test/rfc8967.txt
in-notes/v3test/rfc8967.xml

comment:3 Changed 20 months ago by arusso@amsl.com

An example like comment:2 -- Lack of whitespace between <artwork> and <t> in the PDF.
See page 17 of https://www.rfc-editor.org/v3test/test8848.pdf

comment:4 Changed 19 months ago by rjsparks@nostrum.com

  • Status changed from new to accepted
Note: See TracTickets for help on using tickets.