diff options
Diffstat (limited to 'format.c')
| -rw-r--r-- | format.c | 20 |
1 files changed, 0 insertions, 20 deletions
| @@ -160,16 +160,6 @@ static xs_str *format_line(const char *line, xs_list **attach) | |||
| 160 | xs *link = xs_fmt("<a href=\"%s\">%s</a>", url, name); | 160 | xs *link = xs_fmt("<a href=\"%s\">%s</a>", url, name); |
| 161 | 161 | ||
| 162 | s = xs_str_cat(s, link); | 162 | s = xs_str_cat(s, link); |
| 163 | |||
| 164 | /* also add the link as an attachment */ | ||
| 165 | xs *d = xs_dict_new(); | ||
| 166 | |||
| 167 | d = xs_dict_append(d, "mediaType", "text/html"); | ||
| 168 | d = xs_dict_append(d, "url", url); | ||
| 169 | d = xs_dict_append(d, "name", name); | ||
| 170 | d = xs_dict_append(d, "type", "Link"); | ||
| 171 | |||
| 172 | *attach = xs_list_append(*attach, d); | ||
| 173 | } | 163 | } |
| 174 | else | 164 | else |
| 175 | s = xs_str_cat(s, v); | 165 | s = xs_str_cat(s, v); |
| @@ -253,16 +243,6 @@ static xs_str *format_line(const char *line, xs_list **attach) | |||
| 253 | else { | 243 | else { |
| 254 | xs *s1 = xs_fmt("<a href=\"%s\" target=\"_blank\">%s</a>", v2, u); | 244 | xs *s1 = xs_fmt("<a href=\"%s\" target=\"_blank\">%s</a>", v2, u); |
| 255 | s = xs_str_cat(s, s1); | 245 | s = xs_str_cat(s, s1); |
| 256 | |||
| 257 | /* also add the link as an attachment */ | ||
| 258 | xs *d = xs_dict_new(); | ||
| 259 | |||
| 260 | d = xs_dict_append(d, "mediaType", "text/html"); | ||
| 261 | d = xs_dict_append(d, "url", v2); | ||
| 262 | d = xs_dict_append(d, "name", ""); | ||
| 263 | d = xs_dict_append(d, "type", "Link"); | ||
| 264 | |||
| 265 | *attach = xs_list_append(*attach, d); | ||
| 266 | } | 246 | } |
| 267 | } | 247 | } |
| 268 | else | 248 | else |