[publican-list] clean_ids duplicates IDs in <listitem> tags

Jeff Fearn jfearn at redhat.com
Thu Jul 11 23:13:56 UTC 2013


On 07/12/2013 01:19 AM, David O'Brien wrote:
> I don't usually do this, but I  had cause to do it today.
>
> I put an ID in two <listitem> tags because I needed to refer to them later, using an <xref>. The original ID was just invented, e.g., fred, and clean_ids converted it to what it "should" be (based on section, title, etc.).
>
> Subsequent use of clean_ids, however, resulted in duplication of the ID, so instead of "sect-My_Section-My_List", it created "sect-My_Section-My_List-sect-My_Section-My_List". Each use of clean_ids added another level to the ID.
>
> Is this fixable? Is there a better way to do it?

This will happen when you put IDs in tags that do not have title tags in them. It is a limitation of clean_ids.

FYI It's also a sign that you just broke translation.

Cheers, Jeff.

-- 
Jeff Fearn <jfearn at redhat.com>
Senior Software Engineer
Infrastructure Engineering & Development (AEU)
Red Hat Asia Pacific Pty Ltd
GPG: 0x0357E8F0




More information about the publican-list mailing list