Changeset 1238 for cpp/frams/genetics/genman.cpp
- Timestamp:
- 05/08/23 02:09:13 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/genetics/genman.cpp
r988 r1238 476 476 { 477 477 char buf[50]; 478 int len = strlen(g);478 int len = int(strlen(g)); 479 479 int chars = 0, lines = 0; 480 480 bool shortened = false; 481 481 uint32_t *styletab = new uint32_t[len]; 482 482 getFullStyle(g, styletab); 483 string html = "\n<div style=\"background:white;padding:0.2em;font-family:arial,helvetica,sans-serif;font-size:90%\">"; 483 string html = "<style>" 484 "span.geno{background:white; padding:0.2em; font-family:arial,helvetica,sans-serif}" 485 "</style>\n\n"; 486 html += "<span class=\"geno\">"; 484 487 uint32_t prevstyle, prevcolor, style = 0, color = 0; 485 488 for (int i = 0; i < len; i++) … … 516 519 html += "</u></b></i></font>"; 517 520 if (shortened) html += " [etc...]"; 518 html += "</ div>\n";521 html += "</span>\n"; 519 522 return html; 520 523 } … … 533 536 { 534 537 char buf[50]; 535 int len = strlen(g);538 int len = int(strlen(g)); 536 539 int chars = 0, lines = 0; //currently not used 537 540 uint32_t *styletab = new uint32_t[len];
Note: See TracChangeset
for help on using the changeset viewer.