URL in Web Catalogue has Trailing space

Get help with MainType here. Please do not post feature requests or bug reports here.
Post Reply
Bhikkhu Pesala
Top Typographer
Top Typographer
Posts: 8345
Joined: Tue Oct 29, 2002 5:28 am
Location: Seven Kings, London UK
Contact:

URL in Web Catalogue has Trailing space

Post by Bhikkhu Pesala » Mon Nov 17, 2014 9:44 am

I modified fontitem.htf to add a hyperlink to fonts with a particular tag. This used to work OK for Colour fonts, which would redirect to the YouTube video.

However, when I try the same trick to add a link to my free font downloads, a trailing space character %20 is added to the URL, which just gives a Site under construction message. What did I do wrong or has something recently changed in MainType?
<div class="fontitem">
<div class="paneleft">
<a name="{WEB_EXPORT_FONT_ID}"></a>
<h3 class="fontname"><img title="{FONT_TYPE}" src="{FONT_TYPE_REL}" alt="{FONT_TYPE}" style="border: 0px solid ; width: 16px; height: 16px;" /> {FONT_NAME}</h3>
</div>
<div class="paneright"><a href=http://www.softerviews.org/Fonts.html" title="Download Free OpenType Fonts"">{FONT_TAGS}</a> {FONT_GROUPS}
</div>
<img title="{FONT_NAME}" src="{FONT_PREVIEW_REL}" alt="{FONT_NAME}" style="border: 0px solid ; width: {FONT_PREVIEW_WIDTH}px; height: {FONT_PREVIEW_HEIGHT}px;" />
</div>
This is how it now looks when I publish the catalogue again to my local drive:
Trailing Space.png
Trailing Space.png (3.86 KiB) Viewed 1381 times
My FontsReviews: MainTypeFont CreatorHelpFC12 Pro + MT9.0 @ Win10 1903 build 18362.356

Erwin Denissen
Moderator
Moderator
Posts: 8269
Joined: Fri Oct 04, 2002 12:41 am
Location: Bilthoven, The Netherlands
Contact:

Re: URL in Web Catalogue has Trailing space

Post by Erwin Denissen » Mon Nov 17, 2014 10:09 am

I think this line contains quotation marks in the wrong place:

<a href=http://www.softerviews.org/Fonts.html" title="Download Free OpenType Fonts"">

Should be:

<a href="http://www.softerviews.org/Fonts.html" title="Download Free OpenType Fonts">
Erwin Denissen
High-Logic
Proven Font Technology

Bhikkhu Pesala
Top Typographer
Top Typographer
Posts: 8345
Joined: Tue Oct 29, 2002 5:28 am
Location: Seven Kings, London UK
Contact:

Re: URL in Web Catalogue has Trailing space

Post by Bhikkhu Pesala » Mon Nov 17, 2014 10:36 am

Erwin Denissen wrote:I think this line contains quotation marks in the wrong place:

<a href=http://www.softerviews.org/Fonts.html" title="Download Free OpenType Fonts"">

Should be:

<a href="http://www.softerviews.org/Fonts.html" title="Download Free OpenType Fonts">
Thanks for your quick reply. So easy when you can read code.

Now fixed and ready to update the catalogue for WebPlus X8, which was released today. :)
My FontsReviews: MainTypeFont CreatorHelpFC12 Pro + MT9.0 @ Win10 1903 build 18362.356

Post Reply