Fossil SCM
Add the ⟾ mark after external hyperlinks in wiki.
Commit
0039b7813ee728d25509c20d4f9f3df287719945
Parent
dffe11c29c10e82…
1 file changed
+2
-1
+2
-1
| --- src/wikiformat.c | ||
| +++ src/wikiformat.c | ||
| @@ -940,18 +940,19 @@ | ||
| 940 | 940 | const char *zTarget, /* Hyperlink traget; text within [...] */ |
| 941 | 941 | char *zClose, /* Write hyperlink closing text here */ |
| 942 | 942 | int nClose /* Bytes available in zClose[] */ |
| 943 | 943 | ){ |
| 944 | 944 | const char *zTerm = "</a>"; |
| 945 | - assert( nClose>10 ); | |
| 945 | + assert( nClose>=20 ); | |
| 946 | 946 | |
| 947 | 947 | if( strncmp(zTarget, "http:", 5)==0 |
| 948 | 948 | || strncmp(zTarget, "https:", 6)==0 |
| 949 | 949 | || strncmp(zTarget, "ftp:", 4)==0 |
| 950 | 950 | || strncmp(zTarget, "mailto:", 7)==0 |
| 951 | 951 | ){ |
| 952 | 952 | blob_appendf(p->pOut, "<a href=\"%s\">", zTarget); |
| 953 | + zTerm = "⟾</a>"; | |
| 953 | 954 | }else if( zTarget[0]=='/' ){ |
| 954 | 955 | if( 1 /* g.okHistory */ ){ |
| 955 | 956 | blob_appendf(p->pOut, "<a href=\"%s%h\">", g.zBaseURL, zTarget); |
| 956 | 957 | }else{ |
| 957 | 958 | zTerm = ""; |
| 958 | 959 |
| --- src/wikiformat.c | |
| +++ src/wikiformat.c | |
| @@ -940,18 +940,19 @@ | |
| 940 | const char *zTarget, /* Hyperlink traget; text within [...] */ |
| 941 | char *zClose, /* Write hyperlink closing text here */ |
| 942 | int nClose /* Bytes available in zClose[] */ |
| 943 | ){ |
| 944 | const char *zTerm = "</a>"; |
| 945 | assert( nClose>10 ); |
| 946 | |
| 947 | if( strncmp(zTarget, "http:", 5)==0 |
| 948 | || strncmp(zTarget, "https:", 6)==0 |
| 949 | || strncmp(zTarget, "ftp:", 4)==0 |
| 950 | || strncmp(zTarget, "mailto:", 7)==0 |
| 951 | ){ |
| 952 | blob_appendf(p->pOut, "<a href=\"%s\">", zTarget); |
| 953 | }else if( zTarget[0]=='/' ){ |
| 954 | if( 1 /* g.okHistory */ ){ |
| 955 | blob_appendf(p->pOut, "<a href=\"%s%h\">", g.zBaseURL, zTarget); |
| 956 | }else{ |
| 957 | zTerm = ""; |
| 958 |
| --- src/wikiformat.c | |
| +++ src/wikiformat.c | |
| @@ -940,18 +940,19 @@ | |
| 940 | const char *zTarget, /* Hyperlink traget; text within [...] */ |
| 941 | char *zClose, /* Write hyperlink closing text here */ |
| 942 | int nClose /* Bytes available in zClose[] */ |
| 943 | ){ |
| 944 | const char *zTerm = "</a>"; |
| 945 | assert( nClose>=20 ); |
| 946 | |
| 947 | if( strncmp(zTarget, "http:", 5)==0 |
| 948 | || strncmp(zTarget, "https:", 6)==0 |
| 949 | || strncmp(zTarget, "ftp:", 4)==0 |
| 950 | || strncmp(zTarget, "mailto:", 7)==0 |
| 951 | ){ |
| 952 | blob_appendf(p->pOut, "<a href=\"%s\">", zTarget); |
| 953 | zTerm = "⟾</a>"; |
| 954 | }else if( zTarget[0]=='/' ){ |
| 955 | if( 1 /* g.okHistory */ ){ |
| 956 | blob_appendf(p->pOut, "<a href=\"%s%h\">", g.zBaseURL, zTarget); |
| 957 | }else{ |
| 958 | zTerm = ""; |
| 959 |