If it's centered and it's short, it's a heading
Best, Preface: 01_Preface.docx output_best_preface.zip
In this file, headings are the same style (Normal), font size and formatting as the text, except that they are
- centered, and
- double spaced, when everything else is single spaced, so it appears as if there's an empty line above and below the heading.
Each time header promotion sees this, it inserts an empty heading above and below the actual heading, which itself is tagged as a p
...angles, we decided to join forces.</p>
<h1 style="font-family: Arial; font-size: 12pt"><!-- empty --></h1>
<p style="font-family: Arial; font-size: 12pt; text-align: center">Our Stories: Four Generations of Oldest Sons</p>
<h1 style="font-family: Arial; font-size: 12pt"><!-- empty --></h1>
<p style="font-family: Arial; font-size: 12pt"><span class="tab" />Eric is Joel’s oldest son...
What is actually causing the empty h1 tags to be added in this way? Is it the centering or the line spacing change, and is there an easy fix? Does line spacing currently affect header promotion?
I think the best way to recognize these headers is to introduce a simple rule to promote anything that is:
- 200 char or less (#58 (closed))
- centered
- surrounded by text that is not centered
And, I think it's better to over-promote than under, since something that's centered is still likely important (caption, etc.).
What do you think?