Check-in [0039b7813e]
Not logged in
Overview

SHA1 Hash:0039b7813ee728d25509c20d4f9f3df287719945
Date: 2009-11-01 19:49:34
User: drh
Comment:Add the ⟾ mark after external hyperlinks in wiki.
Timelines: ancestors | descendants | both | trunk
Other Links: files | ZIP archive | manifest

Tags And Properties
Changes
[hide diffs]

Modified src/wikiformat.c from [eea8f89fd5] to [0f09948df1].

@@ -940,18 +940,19 @@
   const char *zTarget,    /* Hyperlink traget; text within [...] */
   char *zClose,           /* Write hyperlink closing text here */
   int nClose              /* Bytes available in zClose[] */
 ){
   const char *zTerm = "</a>";
-  assert( nClose>10 );
+  assert( nClose>=20 );
 
   if( strncmp(zTarget, "http:", 5)==0
    || strncmp(zTarget, "https:", 6)==0
    || strncmp(zTarget, "ftp:", 4)==0
    || strncmp(zTarget, "mailto:", 7)==0
   ){
     blob_appendf(p->pOut, "<a href=\"%s\">", zTarget);
+    zTerm = "&#x27FE;</a>";
   }else if( zTarget[0]=='/' ){
     if( 1 /* g.okHistory */ ){
       blob_appendf(p->pOut, "<a href=\"%s%h\">", g.zBaseURL, zTarget);
     }else{
       zTerm = "";