From: Ramón Cahenzli Date: Thu, 30 Sep 2010 18:06:48 +0000 (+0200) Subject: Harmonizing HTML case to lowercase, quoting HTML attributes. X-Git-Tag: v8.01~682^2 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=cbcd09d02d90ebab24419700bfad8fd7355a2b0d Harmonizing HTML case to lowercase, quoting HTML attributes. --- diff --git a/webcit/vcard_edit.c b/webcit/vcard_edit.c index c2bf41d47..88dd0cb36 100644 --- a/webcit/vcard_edit.c +++ b/webcit/vcard_edit.c @@ -264,7 +264,7 @@ void display_parsed_vcard(StrBuf *Target, struct vCard *v, int full, wc_mime_att strcpy(org, ""); if (!full) { - StrBufAppendPrintf(Target, ""); + StrBufAppendPrintf(Target, ""); name = vcard_get_prop(v, "fn", 1, 0, 0); if (name != NULL) { StrEscAppend(Target, NULL, name, 0, 0); @@ -277,12 +277,12 @@ void display_parsed_vcard(StrBuf *Target, struct vCard *v, int full, wc_mime_att else { StrBufAppendPrintf(Target, " "); } - StrBufAppendPrintf(Target, ""); + StrBufAppendPrintf(Target, ""); return; } - StrBufAppendPrintf(Target, "
" - ""); + StrBufAppendPrintf(Target, "
" + "
"); for (pass=1; pass<=2; ++pass) { if (v->numprops) for (i=0; i<(v->numprops); ++i) { @@ -396,9 +396,9 @@ void display_parsed_vcard(StrBuf *Target, struct vCard *v, int full, wc_mime_att } else if (!strcasecmp(firsttoken, "adr")) { if (pass == 2) { - StrBufAppendPrintf(Target, "\n"); + StrBufAppendPrintf(Target, "\n"); } } /* else if (!strcasecmp(firsttoken, "photo") && full && pass == 2) { @@ -445,23 +445,23 @@ void display_parsed_vcard(StrBuf *Target, struct vCard *v, int full, wc_mime_att } if (pass == 1) { - StrBufAppendPrintf(Target, "" - "" + "\n"); + StrBufAppendPrintf(Target, "\n"); if (!IsEmptyStr(phone)) { StrBufAppendPrintf(Target, "
"); + StrBufAppendPrintf(Target, "
"); StrBufAppendPrintf(Target, _("Address:")); - StrBufAppendPrintf(Target, ""); + StrBufAppendPrintf(Target, ""); for (j=0; j
" - "" - ""); + StrBufAppendPrintf(Target, "
" + "" + ""); StrEscAppend(Target, NULL, fullname, 0, 0); - StrBufAppendPrintf(Target, ""); + StrBufAppendPrintf(Target, ""); if (!IsEmptyStr(title)) { - StrBufAppendPrintf(Target, "
"); + StrBufAppendPrintf(Target, "
\""); StrEscAppend(Target, NULL, title, 0, 0); StrBufAppendPrintf(Target, "
"); } if (!IsEmptyStr(org)) { - StrBufAppendPrintf(Target, "
"); + StrBufAppendPrintf(Target, "
"); StrEscAppend(Target, NULL, org, 0, 0); StrBufAppendPrintf(Target, "
"); } - StrBufAppendPrintf(Target, "
"); @@ -601,7 +601,7 @@ void do_addrbook_view(addrbookent *addrbook, int num_ab) { end_tab(page-1, num_pages); } begin_tab(page, num_pages); - wc_printf("\n"); + wc_printf("
\n"); displayed = 0; } @@ -611,7 +611,7 @@ void do_addrbook_view(addrbookent *addrbook, int num_ab) { } bg = 1 - bg; wc_printf("", - (bg ? "DDDDDD" : "FFFFFF") + (bg ? "dddddd" : "ffffff") ); } @@ -843,7 +843,7 @@ void do_edit_vcard(long msgnum, char *partnum, wc_printf("
\n"); - wc_printf("" + wc_printf("
" "" "" "" @@ -893,7 +893,7 @@ void do_edit_vcard(long msgnum, char *partnum, wc_printf("
%s%s%s"); - wc_printf(""); + wc_printf("
"); wc_printf("
"); wc_printf(_("PO box:")); wc_printf(""