Skip to content

docrs 0.3.10

Choose a tag to compare

@github-actions github-actions released this 27 Oct 04:04
· 70 commits to main since this release
9dce352

Library

  • Page 1 of the output shows the header and footer the template's page 1 shows. A template with a first section for a cover or letter and a last section for the body pages (19 of 272 production templates in a Word-render review, 13 of them one licensee's) lost its page 1 logo or letterhead: the output took its headers from the last section alone. The output's single section now shows, on page 1, the first section's first-page header and footer when that section has a distinct first page and its default ones otherwise, and on the other pages the last section's default ones, inherited from earlier sections where the last lacks them, as Word resolves them. When page 1 differs from the other pages the section gets a distinct first page (w:titlePg) carrying page 1's header and footer; when they are the same it has none, and a first-page reference the last section defined is dropped. Page size, margins and orientation still come from the last section. inspectReference reports the resulting section.title_page and headers_footers (a story the last section does not define itself is inherited), and its multiple_sections problem says so.

  • A Body Text style counts as used by the template only when it holds prose, as a First Paragraph does (below): short lines and list items in it do not keep it the body. A template whose Body Text held two short lines and four numbered steps of a closing section while sixteen paragraphs of prose were Normal (Arial 11 pt) exported the body in Body Text at 10 pt; the body now follows the prose to Normal, and inspectReference reports it under roles.body.

  • A List Bullet or List Number style the template never writes in takes the font and size of the template's own bulleted or numbered sample paragraphs, which sit in another style (List Paragraph, or whatever Word's list buttons used), as Word resolves them through the style chain and the defaults: a theme font stays a theme font. A template whose List Bullet was bound to the bullet numbering in the theme's minor font while its bullets were List Paragraph in Arial exported the bullets in the theme font; they are Arial 11 pt now. A list style the template writes in keeps its own font.

  • A heading level the template never uses, whose font still comes from the theme, takes the font the template named on the nearest higher level it does use: a Heading 4 in the theme's major font under Headings 1 to 3 set to Arial follows them (its italic and colour stay). A heading level the template uses, or one with a named font anywhere in its style chain, is left as it is.

  • A First Paragraph style counts as used by the template only when it holds prose, a paragraph of 40 characters or more, as the body look does since 0.3.9; a short sample line such as "First Paragraph.", which templates built from Pandoc's sample reference carry for every style, no longer keeps the style in use. Such a template, whose prose is Body Text, gave the paragraph after each heading the First Paragraph style and so Normal's look; it now takes the body's style, as a template with no First Paragraph text does, and inspectReference reports the body's style under roles.first_paragraph. A First Paragraph holding prose, and a template with no prose at all, are unchanged.