Ignore:
Timestamp:
05/08/23 02:09:13 (12 months ago)
Author:
Maciej Komosinski
Message:

Cosmetic

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/genetics/genman.cpp

    r988 r1238  
    476476{
    477477        char buf[50];
    478         int len = strlen(g);
     478        int len = int(strlen(g));
    479479        int chars = 0, lines = 0;
    480480        bool shortened = false;
    481481        uint32_t *styletab = new uint32_t[len];
    482482        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\">";
    484487        uint32_t prevstyle, prevcolor, style = 0, color = 0;
    485488        for (int i = 0; i < len; i++)
     
    516519        html += "</u></b></i></font>";
    517520        if (shortened) html += " [etc...]";
    518         html += "</div>\n";
     521        html += "</span>\n";
    519522        return html;
    520523}
     
    533536{
    534537        char buf[50];
    535         int len = strlen(g);
     538        int len = int(strlen(g));
    536539        int chars = 0, lines = 0; //currently not used
    537540        uint32_t *styletab = new uint32_t[len];
Note: See TracChangeset for help on using the changeset viewer.