Edgewall Software

Opened 17 years ago

Last modified 9 years ago

#4778 new enhancement

simplified wikification of svn log messages — at Version 3

Reported by: Sergei Haller <sergei@…> Owned by: Jonas Borgström
Priority: normal Milestone: next-major-releases
Component: wiki system Version: devel
Severity: normal Keywords: formatter
Cc: rbu@…, lists@… Branch:
Release Notes:
API Changes:
Internal Changes:

Description (last modified by Christian Boos)

Is it possible to simplify the wikification of svn log messages? The problem I get is if we have some math content (like

x^5+x^4+x

which will show like x5+x4+x. There are some other things as well, which we don't actually need in or project, as the log messages are and will always be plain text. The only thing I'd like to keep is the recognition of revision numbers in the log messages with the appropriate links.

Is it hard to achieve this? (Would be ok if it is in the source, i.e. not configurable by admin/user)

Thanks.

Change History (4)

comment:1 by Sergei Haller <sergei@…>, 17 years ago

Type: defectenhancement

comment:2 by Sergei Haller <sergei@…>, 17 years ago

well, I found the place (template/changeset) and replaced

-              ${wiki_to_html(context, changeset.message, escape_newlines=True)}
+              <pre>${changeset.message}</pre>

is there any easy way to parse the message for revision numbers and convert them to links?

comment:3 by Christian Boos, 17 years ago

Component: changeset viewwiki
Description: modified (diff)
Keywords: formatter added
Milestone: 0.11
Owner: changed from Christian Boos to Jonas Borgström
Summary: wikification of svn log messagessimplified wikification of svn log messages

There's currently a TracIni#changeset-section option for that (wiki_format_messages).

Also, I'm in the process of refactoring the Wiki engine. I think it should be possible to create a "TracLinks only" formatter, so that only things like tickets and changesets links get formatted.

by Sergei Haller <sergei@…>, 17 years ago

Attachment: format.patch added
Note: See TracTickets for help on using tickets.