Fossil SCM
Fix to the prior check-in ([a99e9c9164]) so that ticket hyperlinks are displayed correctly.
Commit
733361a55eb0eaa128e0f773f2f5cd9c5ad12dfe
Parent
a99e9c91648c0a8…
1 file changed
+4
-4
+4
-4
| --- src/wikiformat.c | ||
| +++ src/wikiformat.c | ||
| @@ -1056,14 +1056,11 @@ | ||
| 1056 | 1056 | }else{ |
| 1057 | 1057 | zTerm = ""; |
| 1058 | 1058 | } |
| 1059 | 1059 | }else if( is_valid_uuid(zTarget) ){ |
| 1060 | 1060 | int isClosed = 0; |
| 1061 | - if( !in_this_repo(zTarget) ){ | |
| 1062 | - blob_appendf(p->pOut, "<span class=\"brokenlink\">[", zTarget); | |
| 1063 | - zTerm = "]</span>"; | |
| 1064 | - }else if( is_ticket(zTarget, &isClosed) ){ | |
| 1061 | + if( is_ticket(zTarget, &isClosed) ){ | |
| 1065 | 1062 | /* Special display processing for tickets. Display the hyperlink |
| 1066 | 1063 | ** as crossed out if the ticket is closed. |
| 1067 | 1064 | */ |
| 1068 | 1065 | if( isClosed ){ |
| 1069 | 1066 | if( g.okHistory ){ |
| @@ -1085,10 +1082,13 @@ | ||
| 1085 | 1082 | }else{ |
| 1086 | 1083 | blob_appendf(p->pOut, "["); |
| 1087 | 1084 | zTerm = "]"; |
| 1088 | 1085 | } |
| 1089 | 1086 | } |
| 1087 | + }else if( !in_this_repo(zTarget) ){ | |
| 1088 | + blob_appendf(p->pOut, "<span class=\"brokenlink\">[", zTarget); | |
| 1089 | + zTerm = "]</span>"; | |
| 1090 | 1090 | }else if( g.okHistory ){ |
| 1091 | 1091 | blob_appendf(p->pOut, "<a href=\"%s/info/%s\">[", g.zTop, zTarget); |
| 1092 | 1092 | zTerm = "]</a>"; |
| 1093 | 1093 | } |
| 1094 | 1094 | }else if( strlen(zTarget)>=10 && fossil_isdigit(zTarget[0]) && zTarget[4]=='-' |
| 1095 | 1095 |
| --- src/wikiformat.c | |
| +++ src/wikiformat.c | |
| @@ -1056,14 +1056,11 @@ | |
| 1056 | }else{ |
| 1057 | zTerm = ""; |
| 1058 | } |
| 1059 | }else if( is_valid_uuid(zTarget) ){ |
| 1060 | int isClosed = 0; |
| 1061 | if( !in_this_repo(zTarget) ){ |
| 1062 | blob_appendf(p->pOut, "<span class=\"brokenlink\">[", zTarget); |
| 1063 | zTerm = "]</span>"; |
| 1064 | }else if( is_ticket(zTarget, &isClosed) ){ |
| 1065 | /* Special display processing for tickets. Display the hyperlink |
| 1066 | ** as crossed out if the ticket is closed. |
| 1067 | */ |
| 1068 | if( isClosed ){ |
| 1069 | if( g.okHistory ){ |
| @@ -1085,10 +1082,13 @@ | |
| 1085 | }else{ |
| 1086 | blob_appendf(p->pOut, "["); |
| 1087 | zTerm = "]"; |
| 1088 | } |
| 1089 | } |
| 1090 | }else if( g.okHistory ){ |
| 1091 | blob_appendf(p->pOut, "<a href=\"%s/info/%s\">[", g.zTop, zTarget); |
| 1092 | zTerm = "]</a>"; |
| 1093 | } |
| 1094 | }else if( strlen(zTarget)>=10 && fossil_isdigit(zTarget[0]) && zTarget[4]=='-' |
| 1095 |
| --- src/wikiformat.c | |
| +++ src/wikiformat.c | |
| @@ -1056,14 +1056,11 @@ | |
| 1056 | }else{ |
| 1057 | zTerm = ""; |
| 1058 | } |
| 1059 | }else if( is_valid_uuid(zTarget) ){ |
| 1060 | int isClosed = 0; |
| 1061 | if( is_ticket(zTarget, &isClosed) ){ |
| 1062 | /* Special display processing for tickets. Display the hyperlink |
| 1063 | ** as crossed out if the ticket is closed. |
| 1064 | */ |
| 1065 | if( isClosed ){ |
| 1066 | if( g.okHistory ){ |
| @@ -1085,10 +1082,13 @@ | |
| 1082 | }else{ |
| 1083 | blob_appendf(p->pOut, "["); |
| 1084 | zTerm = "]"; |
| 1085 | } |
| 1086 | } |
| 1087 | }else if( !in_this_repo(zTarget) ){ |
| 1088 | blob_appendf(p->pOut, "<span class=\"brokenlink\">[", zTarget); |
| 1089 | zTerm = "]</span>"; |
| 1090 | }else if( g.okHistory ){ |
| 1091 | blob_appendf(p->pOut, "<a href=\"%s/info/%s\">[", g.zTop, zTarget); |
| 1092 | zTerm = "]</a>"; |
| 1093 | } |
| 1094 | }else if( strlen(zTarget)>=10 && fossil_isdigit(zTarget[0]) && zTarget[4]=='-' |
| 1095 |