Here is a modified fluid function to allow write correctly indented
multiline code blocks.
------------------------
void Fl_Code_Type::write_code1() {
const char* c = name();
if (!c) return;
char *pch;
const char *ind = indent();
while( pch=strchr(c,'\n') )
{
int line_len = pch - c;
write_c("%s%.*s\n", ind, line_len, c);
c = pch+1;
}
write_c("%s%s\n", ind, c);
}
-----------------------
P.S.: I tried to insert it as an STR but the STR form isn't working
properly (always complain about the version field).
_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev