| 45 | private: |
| 46 | template <typename Location> |
| 47 | static QString styleElementWithCode(const QByteArray& cssCode, const Location& location) |
| 48 | { |
| 49 | if (cssCode.isEmpty()) { |
| 50 | qCWarning(MANPAGE) << "empty CSS file" << location; |
| 51 | return QString(); |
| 52 | } |
| 53 | return QString::fromUtf8("<style>" + cssCode + "</style>"); |
| 54 | } |
| 55 | |
| 56 | /** |
| 57 | * Read the file contents and return it wrapped in a <style> HTML element. |