#3096: Wiki-Links like wiki:pagename are not displayed as pagename
----------------------------------+-----------------------------------------
 Reporter:  [EMAIL PROTECTED]  |        Owner:  cboos
     Type:  defect                |       Status:  new  
 Priority:  normal                |    Milestone:       
Component:  wiki                  |      Version:  0.9.5
 Severity:  minor                 |   Resolution:       
 Keywords:                        |  
----------------------------------+-----------------------------------------
Changes (by cboos):

  * owner:  jonas => cboos

Old description:

> Wiki-Links like !wiki:pagename are not displayed as !pagename but rather
> as !wiki:pagename.
>
> IMHO  !wiki:pagename should be displayed as pagename.
>
> Example:
>
> wiki:pagename should look like [wiki:pagename pagename] but doesn't.
>
> Solution: pass {{{target}}} instead of {{{match}}} as the last argument
> to {{{_make_link}}}
> in {{{_shref_formatter}}} ({{{trac/wiki/formatter.py}}}).
>
> See attached patch

New description:

 Wiki-Links like !wiki:pagename are not displayed as !pagename but rather
 as !wiki:pagename.

 IMHO  "!wiki:pagename" in the wiki text should be displayed as "pagename".

 Example:

 wiki:pagename should look like [wiki:pagename pagename] but doesn't.

 Solution: pass {{{target}}} instead of {{{match}}} as the last argument to
 {{{_make_link}}}
 in {{{_shref_formatter}}} ({{{trac/wiki/formatter.py}}}).

 See attached patch

Comment:

 As athomas said, when using `[wiki:pagename]`, only `pagename` is
 displayed.

 When using `wiki:pagename`, currently `wiki:pagename` is displayed as
 well,
 which is not so nice. It would look better if the ":" would simply be
 omitted,
 in this case.

 That would be especially nice when writing things like:
 {{{
 That's a new feature of Trac in milestone:0.10
 }}}
 which currently renders as:
  That's a new feature of Trac in milestone:0.10
 and with the proposed change would render as:
  That's a new feature of Trac in [milestone:0.10 milestone 0.10]

 The implementation should take care of not breaking the `http://...`
 links,
 see attachment:keep_local_ns.diff

-- 
Ticket URL: <http://projects.edgewall.com/trac/ticket/3096>
The Trac Project <http://trac.edgewall.com/>
_______________________________________________
Trac-Tickets mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac-tickets

Reply via email to