mirror of
https://github.com/curl/curl.git
synced 2026-08-25 00:43:34 +03:00
example: fix formatting nits
Also: - drop non-portable `__STRING()` macro use where still used. Closes #19746
This commit is contained in:
parent
c10dda9ebb
commit
aad3c2e8e1
50 changed files with 225 additions and 227 deletions
|
|
@ -48,14 +48,14 @@ static uint write_cb(char *in, uint size, uint nmemb, TidyBuffer *out)
|
|||
static void dumpNode(TidyDoc doc, TidyNode tnod, int indent)
|
||||
{
|
||||
TidyNode child;
|
||||
for(child = tidyGetChild(tnod); child; child = tidyGetNext(child) ) {
|
||||
for(child = tidyGetChild(tnod); child; child = tidyGetNext(child)) {
|
||||
ctmbstr name = tidyNodeGetName(child);
|
||||
if(name) {
|
||||
/* if it has a name, then it is an HTML tag ... */
|
||||
TidyAttr attr;
|
||||
printf("%*.*s%s ", indent, indent, "<", name);
|
||||
/* walk the attribute list */
|
||||
for(attr = tidyAttrFirst(child); attr; attr = tidyAttrNext(attr) ) {
|
||||
for(attr = tidyAttrFirst(child); attr; attr = tidyAttrNext(attr)) {
|
||||
printf("%s", tidyAttrName(attr));
|
||||
tidyAttrValue(attr) ? printf("=\"%s\" ",
|
||||
tidyAttrValue(attr)) : printf(" ");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue