View Single Post
Old April 30, 2007, 16:34   #13
Pete Mack
Prophet
 
Join Date: Apr 2007
Location: Seattle, WA
Posts: 5,404
Donated: $40
Pete Mack is on a distinguished road
pav -- it's no worry, the entire block is also nested in [COLOR=white]
See the diff.

Leon; sorry about that; I didn't actually use your code, so I missed the fact you made that change too. I was just looking at the actual output and saw weird color-change stuff embedded in the middle of a sea of blank-space. I also used
Code:
const char *new_color_fmt = (mode == 0) ? 
 		                           "<font color=\"#%02X%02X%02X\">" 
 		                           : "[color=\"#%02X%02X%02X\"]"; 
const char *change_color_fmt = (mode == 0) ? 
	                                 "<\/font><font color=\"#%02X%02X%02X\">" 
 		                            : "[\/color][color=\"#%02X%02X%02X\"]"; 
const char *close_color_fmt = mode ==  0 ? "<\/font>" : "[\/color]";
to tighten things up a little. (Extra backslashes put in to disable vBulletin)

Last edited by Pete Mack; April 30, 2007 at 16:49.
Pete Mack is online now   Reply With Quote