| 2503 | } |
| 2504 | |
| 2505 | void WizHTMLAppendTextInHead(const QString& strText, QString& strHTML) |
| 2506 | { |
| 2507 | ptrdiff_t nPos = 0; |
| 2508 | int from = 0; |
| 2509 | while (1) |
| 2510 | { |
| 2511 | nPos = strHTML.indexOf("</head", from, Qt::CaseInsensitive); |
| 2512 | if (-1 == nPos) |
| 2513 | { |
| 2514 | nPos = 0; |
| 2515 | break; |
| 2516 | } |
| 2517 | // |
| 2518 | if (!WizHTMLIsInCommentsBlock(strHTML, nPos)) |
| 2519 | break; |
| 2520 | // |
| 2521 | from = nPos + 6; |
| 2522 | } |
| 2523 | // |
| 2524 | strHTML.insert(int(nPos), strText); |
| 2525 | } |
| 2526 | |
| 2527 | |
| 2528 |
no test coverage detected