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

David O'Brien daobrien at redhat.com
Fri Jul 12 04:30:52 UTC 2013


On 07/12/2013 02:11 PM, Jeff Fearn wrote:
> On 07/12/2013 01:53 PM, David O'Brien wrote:
>> On 07/12/2013 09:13 AM, Jeff Fearn wrote:
>>> 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.
>>>
>> ok, can try again next time around with a title. I just undid it and
>> went back to manual "Repeat step 3" (and hope that step 3 doesn't
>> move) for this release.
>
> You can manually set the ID and it will work, it's just going to break
> if you use clean_ids.
>
>> Not sure what you mean by "broke translation". Care to elaborate?
>
> Generally linking to things that don't have a title leads to hard livin'
> for translators.

ok, gotcha. I'll see if I can make that work.

thanks~!
>
> Cheers, Jeff.
>


-- 

/David




More information about the publican-list mailing list