Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Aug 2013 14:41:03 +0800 (CST)
From:      Hung-Yi Chen <gaod@hychen.org>
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        clsung@freebsd.org
Subject:   ports/181419: [UPDATE] www/trac: Fix wiki bracketed link with Genshi 0.7
Message-ID:  <201308200641.r7K6f3Ti068991@cse.tw>
Resent-Message-ID: <201308200650.r7K6o2sA052261@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         181419
>Category:       ports
>Synopsis:       [UPDATE] www/trac: Fix wiki bracketed link with Genshi 0.7
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Aug 20 06:50:01 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Hung-Yi Chen
>Release:        FreeBSD 9.1-RELEASE-p5 amd64
>Organization:
>Environment:
System: FreeBSD cse.tw 9.1-RELEASE-p5 FreeBSD 9.1-RELEASE-p5 #0: Sat Jul 27 01:14:23 UTC 2013 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64


	
>Description:
	 Fix wiki bracketed link with Genshi 0.7.
         Ref: http://trac.edgewall.org/changeset/11683

         Port maintainer (clsung <at> FreeBSD.org) is cc'd.
>How-To-Repeat:
>Fix:


--- www_trac.diff begins here ---
Index: www/trac/Makefile
===================================================================
--- www/trac/Makefile	(revision 324754)
+++ www/trac/Makefile	(working copy)
@@ -3,6 +3,7 @@
 
 PORTNAME=	trac
 PORTVERSION=	1.0.1
+PORTREVISION=	1
 CATEGORIES=	www devel python
 MASTER_SITES=	http://ftp.edgewall.com/pub/trac/ \
 		ftp://ftp.edgewall.com/pub/trac/
Index: www/trac/files/patch-trac_wiki_formatter.py
===================================================================
--- www/trac/files/patch-trac_wiki_formatter.py	(revision 0)
+++ www/trac/files/patch-trac_wiki_formatter.py	(working copy)
@@ -0,0 +1,11 @@
+--- trac/wiki/formatter.py.orig	2013-02-01 08:47:41.000000000 +0800
++++ trac/wiki/formatter.py	2013-08-20 14:24:46.982232000 +0800
+@@ -575,7 +575,7 @@
+         ns = fullmatch.group('snsbr')
+         target = unquote_label(fullmatch.group('stgtbr'))
+         match = match[1:-1]
+-        return '&lt;%s&gt;' % \
++        return u'&lt;%s&gt;' % \
+                 self._make_link(ns, target, match, match, fullmatch)
+ 
+     def _shref_formatter(self, match, fullmatch):
Index: www/trac/files/patch-trac_wiki_tests_wiki-tests.txt
===================================================================
--- www/trac/files/patch-trac_wiki_tests_wiki-tests.txt	(revision 0)
+++ www/trac/files/patch-trac_wiki_tests_wiki-tests.txt	(working copy)
@@ -0,0 +1,16 @@
+--- trac/wiki/tests/wiki-tests.txt.orig	2013-08-20 14:02:43.308222000 +0800
++++ trac/wiki/tests/wiki-tests.txt	2013-08-20 14:01:18.000000000 +0800
+@@ -314,6 +314,13 @@
+ ------------------------------
+ <p>
+ nolink:&#34;&lt;blink&gt;&#34;
++</p> 
++------------------------------ 
++============================== Bracketed links 
++See <http://en.wikipedia.org/wiki/Mornington_Crescent_(game)>; 
++------------------------------ 
++<p> 
++See &lt;<a class="ext-link" href="http://en.wikipedia.org/wiki/Mornington_Crescent_(game)"><span class="icon"></span>http://en.wikipedia.org/wiki/Mornington_Crescent_(game)</a>&gt; 
+ </p>
+ ------------------------------
+ ============================================================
--- www_trac.diff ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201308200641.r7K6f3Ti068991>