Fossil SCM
Add a comment for <code>append_footnote_upc()</code>. Also substitute a variable of zero value with just "0" constant. No functional changes.
Commit
ae8a3dd5aab47bebda6f973db397757029608711b247fd3cc08c385efec65112
Parent
f4ff013ace5f1c5…
2 files changed
+1
-1
+5
-1
+1
-1
| --- src/markdown.c | ||
| +++ src/markdown.c | ||
| @@ -2790,11 +2790,11 @@ | ||
| 2790 | 2790 | const struct footnote* x = CAST_AS_FOOTNOTES(notes) + j; |
| 2791 | 2791 | assert( !x->iMark ); |
| 2792 | 2792 | assert( !x->bRndred ); |
| 2793 | 2793 | assert( (&x->id) + 1 == &x->text ); /* see html_footnote_item() */ |
| 2794 | 2794 | assert( (&x->upc)- 1 == &x->text ); |
| 2795 | - rndr.make.footnote_item(all_items,&x->text,x->iMark,0,rndr.make.opaque); | |
| 2795 | + rndr.make.footnote_item(all_items,&x->text,0,0,rndr.make.opaque); | |
| 2796 | 2796 | g.ftntsIssues[1]++; |
| 2797 | 2797 | } |
| 2798 | 2798 | rndr.make.footnotes(ob, all_items, rndr.make.opaque); |
| 2799 | 2799 | release_work_buffer(&rndr, all_items); |
| 2800 | 2800 | } |
| 2801 | 2801 |
| --- src/markdown.c | |
| +++ src/markdown.c | |
| @@ -2790,11 +2790,11 @@ | |
| 2790 | const struct footnote* x = CAST_AS_FOOTNOTES(notes) + j; |
| 2791 | assert( !x->iMark ); |
| 2792 | assert( !x->bRndred ); |
| 2793 | assert( (&x->id) + 1 == &x->text ); /* see html_footnote_item() */ |
| 2794 | assert( (&x->upc)- 1 == &x->text ); |
| 2795 | rndr.make.footnote_item(all_items,&x->text,x->iMark,0,rndr.make.opaque); |
| 2796 | g.ftntsIssues[1]++; |
| 2797 | } |
| 2798 | rndr.make.footnotes(ob, all_items, rndr.make.opaque); |
| 2799 | release_work_buffer(&rndr, all_items); |
| 2800 | } |
| 2801 |
| --- src/markdown.c | |
| +++ src/markdown.c | |
| @@ -2790,11 +2790,11 @@ | |
| 2790 | const struct footnote* x = CAST_AS_FOOTNOTES(notes) + j; |
| 2791 | assert( !x->iMark ); |
| 2792 | assert( !x->bRndred ); |
| 2793 | assert( (&x->id) + 1 == &x->text ); /* see html_footnote_item() */ |
| 2794 | assert( (&x->upc)- 1 == &x->text ); |
| 2795 | rndr.make.footnote_item(all_items,&x->text,0,0,rndr.make.opaque); |
| 2796 | g.ftntsIssues[1]++; |
| 2797 | } |
| 2798 | rndr.make.footnotes(ob, all_items, rndr.make.opaque); |
| 2799 | release_work_buffer(&rndr, all_items); |
| 2800 | } |
| 2801 |
+5
-1
| --- src/markdown_html.c | ||
| +++ src/markdown_html.c | ||
| @@ -334,14 +334,18 @@ | ||
| 334 | 334 | BLOB_APPEND_LITERAL(ob, " <tr>\n"); |
| 335 | 335 | BLOB_APPEND_BLOB(ob, cells); |
| 336 | 336 | BLOB_APPEND_LITERAL(ob, " </tr>\n"); |
| 337 | 337 | } |
| 338 | 338 | |
| 339 | +/* Render a token of user provided classes. | |
| 340 | +** If bHTML is true then render HTML for (presumably) visible text, | |
| 341 | +** otherwise just a space-separated list of the derived classes | |
| 342 | +*/ | |
| 339 | 343 | static void append_footnote_upc( |
| 340 | 344 | struct Blob *ob, |
| 341 | 345 | const struct Blob *upc, /* token of user-provided classes */ |
| 342 | - int bHTML /* if true then render markup, otherwise just a list of classes */ | |
| 346 | + int bHTML | |
| 343 | 347 | ){ |
| 344 | 348 | const char *z = blob_buffer(upc); |
| 345 | 349 | int i, n = blob_size(upc); |
| 346 | 350 | if( n<3 ) return; |
| 347 | 351 | assert( z[0]=='.' && z[n-1] == ':' ); |
| 348 | 352 |
| --- src/markdown_html.c | |
| +++ src/markdown_html.c | |
| @@ -334,14 +334,18 @@ | |
| 334 | BLOB_APPEND_LITERAL(ob, " <tr>\n"); |
| 335 | BLOB_APPEND_BLOB(ob, cells); |
| 336 | BLOB_APPEND_LITERAL(ob, " </tr>\n"); |
| 337 | } |
| 338 | |
| 339 | static void append_footnote_upc( |
| 340 | struct Blob *ob, |
| 341 | const struct Blob *upc, /* token of user-provided classes */ |
| 342 | int bHTML /* if true then render markup, otherwise just a list of classes */ |
| 343 | ){ |
| 344 | const char *z = blob_buffer(upc); |
| 345 | int i, n = blob_size(upc); |
| 346 | if( n<3 ) return; |
| 347 | assert( z[0]=='.' && z[n-1] == ':' ); |
| 348 |
| --- src/markdown_html.c | |
| +++ src/markdown_html.c | |
| @@ -334,14 +334,18 @@ | |
| 334 | BLOB_APPEND_LITERAL(ob, " <tr>\n"); |
| 335 | BLOB_APPEND_BLOB(ob, cells); |
| 336 | BLOB_APPEND_LITERAL(ob, " </tr>\n"); |
| 337 | } |
| 338 | |
| 339 | /* Render a token of user provided classes. |
| 340 | ** If bHTML is true then render HTML for (presumably) visible text, |
| 341 | ** otherwise just a space-separated list of the derived classes |
| 342 | */ |
| 343 | static void append_footnote_upc( |
| 344 | struct Blob *ob, |
| 345 | const struct Blob *upc, /* token of user-provided classes */ |
| 346 | int bHTML |
| 347 | ){ |
| 348 | const char *z = blob_buffer(upc); |
| 349 | int i, n = blob_size(upc); |
| 350 | if( n<3 ) return; |
| 351 | assert( z[0]=='.' && z[n-1] == ':' ); |
| 352 |