Inserting HTML code objects - H&M doesn't see anchors

Please post all questions relating to Help & Manual 6 here!

Moderators: Alexander Halser, Tim Green

Post Reply
User avatar
Alexey
Posts: 95
Joined: Mon Feb 09, 2009 3:15 pm

Inserting HTML code objects - H&M doesn't see anchors

Unread post by Alexey »

Hi,
When I insert HTML code into a topic, H&M doesn't see anchors in it. It results in errors during compilation: Topic ''some topic" references an undefined anchor: "#some anchor" in topic "some other topic".
Is there a workaround?
User avatar
Martin Wynne
Posts: 2656
Joined: Mon May 12, 2003 3:21 pm
Location: West of the Severn, UK

Re: Inserting HTML code objects - H&M doesn't see anchors

Unread post by Martin Wynne »

Alexey wrote:Is there a workaround?
Hi Alexey,

A workaround is to split the HTML into several Code Objects, with Shift+Return between lines:
hm_code_anchor.png
regards,

Martin.
You do not have the required permissions to view the files attached to this post.
User avatar
Tim Green
Site Admin
Posts: 23189
Joined: Mon Jun 24, 2002 9:11 am
Location: Bruehl, Germany
Contact:

Re: Inserting HTML code objects - H&M doesn't see anchors

Unread post by Tim Green »

Hi Alexey,

So long as you know that the anchor is there and that your link to it is valid you can also just ignore the error message. It is just a warning, it will not disable anything.
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
Alexey
Posts: 95
Joined: Mon Feb 09, 2009 3:15 pm

Re: Inserting HTML code objects - H&M doesn't see anchors

Unread post by Alexey »

Martin Wynne wrote:
Alexey wrote:Is there a workaround?
Hi Alexey,

A workaround is to split the HTML into several Code Objects, with Shift+Return between lines:
hm_code_anchor.png
regards,

Martin.
Thank you! Will try
User avatar
Alexey
Posts: 95
Joined: Mon Feb 09, 2009 3:15 pm

Re: Inserting HTML code objects - H&M doesn't see anchors

Unread post by Alexey »

Tim Green wrote:Hi Alexey,

So long as you know that the anchor is there and that your link to it is valid you can also just ignore the error message. It is just a warning, it will not disable anything.
Thanks, but I can't ignore them. Help is produced automatically, we check exit codes. If we ignore exit codes, we may miss real problems.
User avatar
Alexander Halser
EC-Software Support
Posts: 4106
Joined: Mon Jun 24, 2002 7:24 pm
Location: Salzburg, Austria
Contact:

Re: Inserting HTML code objects - H&M doesn't see anchors

Unread post by Alexander Halser »

The dead anchor warning is a warning, not an error. It produces an exit code "2", not "1" like a critical error would.

If link is on the same page as the anchor, you might want to use an Internet link instead. Topic links are evaluated and reported if missing, Internet links are not.
Alexander Halser
Senior Software Architect, EC Software GmbH
Post Reply