Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • XSweet XSweet
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 49
    • Issues 49
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • XSweet
  • XSweetXSweet
  • Issues
  • #61

Closed
Open
Created Apr 03, 2017 by Alex Theg@athegOwner

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

  1. centered, and
  2. 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:

  1. 200 char or less (#58 (closed))
  2. centered
  3. 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?

Assignee
Assign to
Time tracking