Why do anchors create huge spaces above headings?

Please post all questions and comments regarding Help & Manual 7 here.

Moderators: Alexander Halser, Tim Green

Post Reply
User avatar
Ed Hawco
Posts: 165
Joined: Thu Nov 07, 2013 5:50 pm
Location: Montreal
Contact:

Why do anchors create huge spaces above headings?

Unread post by Ed Hawco » Wed Sep 07, 2016 7:34 pm

When I insert an anchor in a heading, the compiled page inserts a huge amount of top margin space above the heading. This does not appear if the heading does not contain an anchor. What is it about the anchor that creates this spacing?

It's not in the skin nor in the typography repository. I've changed the skin and I've removed the repository and after compiling I still get those huge spaces. Here's a screenshot of a test (arrows point to where anchors appear):

Image

Any idea what's going on here? These are just regular old anchors. They don't even have context IDs or keywords!
(H&M 7 with modified "Webhelp, iFrames Responsive, White-Grey.hmskin" skin.)
e
d
============================================
Ed Hawco

Simon Dismore
Posts: 454
Joined: Thu Nov 16, 2006 1:29 pm
Location: London, UK

Re: Why do anchors create huge spaces above headings?

Unread post by Simon Dismore » Thu Sep 08, 2016 12:32 am

Doesn't happen to me using Heading 1 "with" vs. "without" anchors in a new project. Compiled with H&M 7.2.0 build 3971 with (a) no skin, and (b) unmodified "Webhelp, iFrames Responsive, White-Grey.hmskin". The browser's 'inspect element' feature might be your friend here.

User avatar
Tim Green
Site Admin
Posts: 22234
Joined: Mon Jun 24, 2002 9:11 am
Location: Bruehl, Germany
Contact:

Re: Why do anchors create huge spaces above headings?

Unread post by Tim Green » Thu Sep 08, 2016 10:13 am

Hi Ed,

Something screwy is going on there. Please mail me a small demo project at support AT ec-software.com (replace the AT with @) and I'll have a look at it. :)
Regards,
Tim (EC Software Documentation & User Support)

Private support:
Please do not email or PM me with private support requests -- post to the forum directly.

User avatar
Ed Hawco
Posts: 165
Joined: Thu Nov 07, 2013 5:50 pm
Location: Montreal
Contact:

Re: Why do anchors create huge spaces above headings?

Unread post by Ed Hawco » Thu Sep 08, 2016 4:38 pm

File has been sent. Thanks!
e
d
============================================
Ed Hawco

David Laczko
Posts: 1
Joined: Wed Jun 09, 2021 1:22 pm

Re: Why do anchors create huge spaces above headings?

Unread post by David Laczko » Thu Jun 10, 2021 7:28 am

I ran into this phenomenon when publishing to chm (and it doesn't just happen with headings) when the page's header is turned off - having it on the spacing is normal. Version 8.3.1 Build 5794.

User avatar
Tim Green
Site Admin
Posts: 22234
Joined: Mon Jun 24, 2002 9:11 am
Location: Bruehl, Germany
Contact:

Re: Why do anchors create huge spaces above headings?

Unread post by Tim Green » Thu Jun 10, 2021 10:34 am

David Laczko wrote:
Thu Jun 10, 2021 7:28 am
I ran into this phenomenon when publishing to chm (and it doesn't just happen with headings) when the page's header is turned off - having it on the spacing is normal. Version 8.3.1 Build 5794.
Check your formatting in that topic. First check the Heading1 style in Write > Styles > Edit Styles and see how much space before is defined in its paragraph options. Then switch on paragraph and text markers in View > Program Options > Editor so that you can see if there are any spurious empty paragraphs.
Regards,
Tim (EC Software Documentation & User Support)

Private support:
Please do not email or PM me with private support requests -- post to the forum directly.

Post Reply