Edgewall Software
Modify

Opened 17 years ago

Closed 17 years ago

Last modified 17 years ago

#2349 closed defect (worksforme)

Anchor feature doesn't work with non-ascii characters

Reported by: jouvin@… Owned by: Jonas Borgström
Priority: normal Milestone:
Component: wiki system Version: 0.9
Severity: major Keywords:
Cc: jouvin@…, vyt@… Branch:
Release Notes:
API Changes:
Internal Changes:

Description

I recently upgrade my 0.8.4 + anchor patch + TOC to plain 0.9 + TOC. URLs created by TOC (based on <hl> tags) no longer works if the header text contains non ascii characters (e.g. french accentuated characters). Looking at the page source, it seems that the 'id' attribute generated by Trac for the header contains 2 characters for the non-ascii character : first one is the same as the one used by TOC and second one look as a space but is not a space. Anyway this second character should be removed in anchor name in order to be used when specifying URL.

Michel

Attachments (1)

anchor-pb.txt (3.4 KB ) - added by anonymous 17 years ago.
Problem example

Download all attachments as: .zip

Change History (9)

comment:1 by vyt@…, 17 years ago

Cc: vyt@… added

comment:2 by Christopher Lenz, 17 years ago

Milestone: 0.9.10.9.2

comment:3 by Christopher Lenz, 17 years ago

Can you please provide an example for this behavior?

comment:4 by jouvin@…, 17 years ago

I attached a wiki page extracted with trac-admin wiki export. This page was written directly inside Internet Explorer on WXP (in the page edit form). Accentuated characters are encoded in UTF8 (2 bytes).

by anonymous, 17 years ago

Attachment: anchor-pb.txt added

Problem example

comment:5 by Christopher Lenz, 17 years ago

Milestone: 0.9.3
Resolution: worksforme
Status: newclosed

The page works for me with the included [[PageOutline]] macro. Seems to be a bug in the TracNav/TOC macros (have you updated those too?). Please contact the authors of those macros for support.

comment:6 by Christopher Lenz, 17 years ago

BTW, please try using the [[PageOutline]] macro on your page (it's included with Trac). If that doesn't work, feel free to reopen this ticket. Thanks.

comment:7 by jouvin@…, 17 years ago

I apologize for this false report. As you said this is TOC which had to be updated for anchor functionnality as it is implemented in 0.9.

In fact, now, TOC is just an alternative frontend to wiki_to_outline() (standard frontend being PageOutline) with more features, in particular :

  • More flexible API as arguments can be specified in any order (with some positional args)
  • Ability to build a TOC from several pages
  • Removing of first level title by default if the TOC is built for the current page
  • Abitility to generate a title index showing the (first) first level header (title) of each page

comment:8 by jouvin@…, 17 years ago

BTW, for those interested, last version of Trac is available on Tack Hacks.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jonas Borgström.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jonas Borgström to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.