01281: Trail fails

Summary: Trail fails
Created: 2012-02-22 18:43
Status: Suspended
Category: Bug
From: CarlosAB
Assigned:
Priority: 2
Version: 2.2.36
OS: unknown

Description: I have a trail page that goes like this:

* [[Html.ListaDeTags | Lista de Tags]] - Lista de tags HTML e XHTML
* [[Html.RelaçãoDeTags |+]] - Relação de tags
* [[Html.TagDeComentário|<!-->]] - A tag de comentário
* [[Html.TagDoctype|<!DOCTYPE>]] - A tag doctype
* [[Html.TagA|<a>]] - A tag a a

When I get to the <!--> page, the trail fails to show the prev and next links. URL:http://codex.wiki.br/Html/TagDeComentário

It also skips that page in the previous or next pages. --Petko February 23, 2012, at 04:35 AM

The problem comes from a normalization which PmWiki tries to do. PmWiki will automatically replace links in the form [[text->target]] to [[target|text]] and in your case [[target|<!-->]], the -> part is wrongly considered a separator between a first text part and a second page part (which is empty and later skipped).

I'm not sure how to fix this without removing or breaking the other feature with text->target links. But there is a quick workaround for your case, if you can separate or escape the -> characters, for example:

* [[Html.TagDeComentário|<!--[==]>]] empty space escaped
* [[Html.TagDeComentário|<!-[=-=]>]] dash escaped
* [[Html.TagDeComentário|<!--[=>=]]] escaped >

These 3 should work fine, both now and after this issue is fixed someday. --Petko February 23, 2012, at 05:03 AM


Thanks Petko, that solved the problem.CarlosAB February 23, 2012, at 04:36 PM