Fossil SCM
Removed some console.debug() output and fixed extraneous breaks which caused markdown_to_html() to stop afer processing a single tag.
Commit
67060c509079a8b7603d1af6725b7df25fc326c82e0af27ec8d5e6474a2025ed
Parent
938bb6c7089c43e…
2 files changed
-1
-6
-1
| --- src/fossil.pikchr.js | ||
| +++ src/fossil.pikchr.js | ||
| @@ -72,11 +72,10 @@ | ||
| 72 | 72 | const srcView = svg.nextElementSibling; |
| 73 | 73 | if(!srcView || !srcView.classList.contains('pikchr-src')){ |
| 74 | 74 | /* Without this element, there's nothing for us to do here. */ |
| 75 | 75 | return this; |
| 76 | 76 | } |
| 77 | - console.debug(svg, parent, srcView); | |
| 78 | 77 | parent.dataset.origMaxWidth = parent.style.maxWidth; |
| 79 | 78 | parent._childs = [svg, srcView]; |
| 80 | 79 | D.addClass(srcView, 'hidden'); |
| 81 | 80 | D.removeClass(svg, 'hidden'); |
| 82 | 81 | parent.addEventListener('click', f.parentClick, false); |
| 83 | 82 |
| --- src/fossil.pikchr.js | |
| +++ src/fossil.pikchr.js | |
| @@ -72,11 +72,10 @@ | |
| 72 | const srcView = svg.nextElementSibling; |
| 73 | if(!srcView || !srcView.classList.contains('pikchr-src')){ |
| 74 | /* Without this element, there's nothing for us to do here. */ |
| 75 | return this; |
| 76 | } |
| 77 | console.debug(svg, parent, srcView); |
| 78 | parent.dataset.origMaxWidth = parent.style.maxWidth; |
| 79 | parent._childs = [svg, srcView]; |
| 80 | D.addClass(srcView, 'hidden'); |
| 81 | D.removeClass(svg, 'hidden'); |
| 82 | parent.addEventListener('click', f.parentClick, false); |
| 83 |
| --- src/fossil.pikchr.js | |
| +++ src/fossil.pikchr.js | |
| @@ -72,11 +72,10 @@ | |
| 72 | const srcView = svg.nextElementSibling; |
| 73 | if(!srcView || !srcView.classList.contains('pikchr-src')){ |
| 74 | /* Without this element, there's nothing for us to do here. */ |
| 75 | return this; |
| 76 | } |
| 77 | parent.dataset.origMaxWidth = parent.style.maxWidth; |
| 78 | parent._childs = [svg, srcView]; |
| 79 | D.addClass(srcView, 'hidden'); |
| 80 | D.removeClass(svg, 'hidden'); |
| 81 | parent.addEventListener('click', f.parentClick, false); |
| 82 |
-6
| --- src/markdown_html.c | ||
| +++ src/markdown_html.c | ||
| @@ -352,26 +352,20 @@ | ||
| 352 | 352 | while( nArg>0 ){ |
| 353 | 353 | int i; |
| 354 | 354 | for(i=0; i<nArg && !fossil_isspace(zArg[i]); i++){} |
| 355 | 355 | if( i==6 && strncmp(zArg, "center", 6)==0 ){ |
| 356 | 356 | pikFlags |= PIKCHR_PROCESS_DIV_CENTER; |
| 357 | - break; | |
| 358 | 357 | }else if( i==6 && strncmp(zArg, "indent", 6)==0 ){ |
| 359 | 358 | pikFlags |= PIKCHR_PROCESS_DIV_INDENT; |
| 360 | - break; | |
| 361 | 359 | }else if( i==10 && strncmp(zArg, "float-left", 10)==0 ){ |
| 362 | 360 | pikFlags |= PIKCHR_PROCESS_DIV_FLOAT_LEFT; |
| 363 | - break; | |
| 364 | 361 | }else if( i==11 && strncmp(zArg, "float-right", 11)==0 ){ |
| 365 | 362 | pikFlags |= PIKCHR_PROCESS_DIV_FLOAT_RIGHT; |
| 366 | - break; | |
| 367 | 363 | }else if( i==6 && strncmp(zArg, "toggle", 6)==0 ){ |
| 368 | 364 | pikFlags |= PIKCHR_PROCESS_DIV_TOGGLE; |
| 369 | - break; | |
| 370 | 365 | }else if( i==6 && strncmp(zArg, "source", 6)==0 ){ |
| 371 | 366 | pikFlags |= PIKCHR_PROCESS_DIV_SOURCE; |
| 372 | - break; | |
| 373 | 367 | } |
| 374 | 368 | while( i<nArg && fossil_isspace(zArg[i]) ){ i++; } |
| 375 | 369 | zArg += i; |
| 376 | 370 | nArg -= i; |
| 377 | 371 | } |
| 378 | 372 |
| --- src/markdown_html.c | |
| +++ src/markdown_html.c | |
| @@ -352,26 +352,20 @@ | |
| 352 | while( nArg>0 ){ |
| 353 | int i; |
| 354 | for(i=0; i<nArg && !fossil_isspace(zArg[i]); i++){} |
| 355 | if( i==6 && strncmp(zArg, "center", 6)==0 ){ |
| 356 | pikFlags |= PIKCHR_PROCESS_DIV_CENTER; |
| 357 | break; |
| 358 | }else if( i==6 && strncmp(zArg, "indent", 6)==0 ){ |
| 359 | pikFlags |= PIKCHR_PROCESS_DIV_INDENT; |
| 360 | break; |
| 361 | }else if( i==10 && strncmp(zArg, "float-left", 10)==0 ){ |
| 362 | pikFlags |= PIKCHR_PROCESS_DIV_FLOAT_LEFT; |
| 363 | break; |
| 364 | }else if( i==11 && strncmp(zArg, "float-right", 11)==0 ){ |
| 365 | pikFlags |= PIKCHR_PROCESS_DIV_FLOAT_RIGHT; |
| 366 | break; |
| 367 | }else if( i==6 && strncmp(zArg, "toggle", 6)==0 ){ |
| 368 | pikFlags |= PIKCHR_PROCESS_DIV_TOGGLE; |
| 369 | break; |
| 370 | }else if( i==6 && strncmp(zArg, "source", 6)==0 ){ |
| 371 | pikFlags |= PIKCHR_PROCESS_DIV_SOURCE; |
| 372 | break; |
| 373 | } |
| 374 | while( i<nArg && fossil_isspace(zArg[i]) ){ i++; } |
| 375 | zArg += i; |
| 376 | nArg -= i; |
| 377 | } |
| 378 |
| --- src/markdown_html.c | |
| +++ src/markdown_html.c | |
| @@ -352,26 +352,20 @@ | |
| 352 | while( nArg>0 ){ |
| 353 | int i; |
| 354 | for(i=0; i<nArg && !fossil_isspace(zArg[i]); i++){} |
| 355 | if( i==6 && strncmp(zArg, "center", 6)==0 ){ |
| 356 | pikFlags |= PIKCHR_PROCESS_DIV_CENTER; |
| 357 | }else if( i==6 && strncmp(zArg, "indent", 6)==0 ){ |
| 358 | pikFlags |= PIKCHR_PROCESS_DIV_INDENT; |
| 359 | }else if( i==10 && strncmp(zArg, "float-left", 10)==0 ){ |
| 360 | pikFlags |= PIKCHR_PROCESS_DIV_FLOAT_LEFT; |
| 361 | }else if( i==11 && strncmp(zArg, "float-right", 11)==0 ){ |
| 362 | pikFlags |= PIKCHR_PROCESS_DIV_FLOAT_RIGHT; |
| 363 | }else if( i==6 && strncmp(zArg, "toggle", 6)==0 ){ |
| 364 | pikFlags |= PIKCHR_PROCESS_DIV_TOGGLE; |
| 365 | }else if( i==6 && strncmp(zArg, "source", 6)==0 ){ |
| 366 | pikFlags |= PIKCHR_PROCESS_DIV_SOURCE; |
| 367 | } |
| 368 | while( i<nArg && fossil_isspace(zArg[i]) ){ i++; } |
| 369 | zArg += i; |
| 370 | nArg -= i; |
| 371 | } |
| 372 |