Fossil SCM

Removed some console.debug() output and fixed extraneous breaks which caused markdown_to_html() to stop afer processing a single tag.

stephan 2020-09-17 23:25 trunk
Commit 67060c509079a8b7603d1af6725b7df25fc326c82e0af27ec8d5e6474a2025ed
--- src/fossil.pikchr.js
+++ src/fossil.pikchr.js
@@ -72,11 +72,10 @@
7272
const srcView = svg.nextElementSibling;
7373
if(!srcView || !srcView.classList.contains('pikchr-src')){
7474
/* Without this element, there's nothing for us to do here. */
7575
return this;
7676
}
77
- console.debug(svg, parent, srcView);
7877
parent.dataset.origMaxWidth = parent.style.maxWidth;
7978
parent._childs = [svg, srcView];
8079
D.addClass(srcView, 'hidden');
8180
D.removeClass(svg, 'hidden');
8281
parent.addEventListener('click', f.parentClick, false);
8382
--- 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
--- src/markdown_html.c
+++ src/markdown_html.c
@@ -352,26 +352,20 @@
352352
while( nArg>0 ){
353353
int i;
354354
for(i=0; i<nArg && !fossil_isspace(zArg[i]); i++){}
355355
if( i==6 && strncmp(zArg, "center", 6)==0 ){
356356
pikFlags |= PIKCHR_PROCESS_DIV_CENTER;
357
- break;
358357
}else if( i==6 && strncmp(zArg, "indent", 6)==0 ){
359358
pikFlags |= PIKCHR_PROCESS_DIV_INDENT;
360
- break;
361359
}else if( i==10 && strncmp(zArg, "float-left", 10)==0 ){
362360
pikFlags |= PIKCHR_PROCESS_DIV_FLOAT_LEFT;
363
- break;
364361
}else if( i==11 && strncmp(zArg, "float-right", 11)==0 ){
365362
pikFlags |= PIKCHR_PROCESS_DIV_FLOAT_RIGHT;
366
- break;
367363
}else if( i==6 && strncmp(zArg, "toggle", 6)==0 ){
368364
pikFlags |= PIKCHR_PROCESS_DIV_TOGGLE;
369
- break;
370365
}else if( i==6 && strncmp(zArg, "source", 6)==0 ){
371366
pikFlags |= PIKCHR_PROCESS_DIV_SOURCE;
372
- break;
373367
}
374368
while( i<nArg && fossil_isspace(zArg[i]) ){ i++; }
375369
zArg += i;
376370
nArg -= i;
377371
}
378372
--- 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

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button