Subversion Repositories programming

Rev

Rev 419 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 419 Rev 422
Line 118... Line 118...
118
            if (top_line.length() == 0)
118
            if (top_line.length() == 0)
119
                top_temp = ul;
119
                top_temp = ul;
120
            else
120
            else
121
                top_temp = um;
121
                top_temp = um;
122
 
122
 
123
            for (int i=0; top_temp.length() < name_temp.length(); i++)
123
            /* Pad out top_temp with horiz bars */
124
                top_temp += hb;
124
            for ( ; top_temp.length() < name_temp.length(); top_temp += hb);
125
 
125
 
126
            /* Generate the "bot" for this box */
126
            /* Generate the "bot" for this box */
127
            if (bot_line.length() == 0)
127
            if (bot_line.length() == 0)
128
                bot_temp = ll;
128
                bot_temp = ll;
129
            else
129
            else
130
                bot_temp = lm;
130
                bot_temp = lm;
131
 
131
 
132
            for (int i=0; bot_temp.length() < name_temp.length(); i++)
132
            /* Pad out bot_temp with horiz bars */
133
                bot_temp += hb;
133
            for ( ; bot_temp.length() < name_temp.length(); bot_temp += hb);
134
 
134
 
135
            /* Generate the "labl" for this box */
135
            /* Generate the "labl" for this box */
136
            labl_temp = "" + e.time;
136
            labl_temp = "" + e.time;
137
 
137
 
138
            for (int i=0; labl_temp.length() < name_temp.length(); i++)
138
            /* Pad out labl_temp with spaces */
139
                labl_temp += " ";
139
            for ( ; labl_temp.length() < name_temp.length(); labl_temp += " ");
140
 
140
 
141
            /* Check if we need to wrap */
141
            /* Check if we need to wrap */
142
            if (name_line.length() + name_temp.length() > 79)
142
            if (name_line.length() + name_temp.length() > 79)
143
            {
143
            {
144
                top_line  += ur;
144
                top_line  += ur;