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
- branch=trunk inherited from [a28c83647d]
- sym-trunk inherited from [a28c83647d]
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 = "⟾</a>"; }else if( zTarget[0]=='/' ){ if( 1 /* g.okHistory */ ){ blob_appendf(p->pOut, "<a href=\"%s%h\">", g.zBaseURL, zTarget); }else{ zTerm = "";