export: force wrap and word-break for line number of code block

This commit is contained in:
Le Tan 2018-03-21 19:31:52 +08:00
parent 49e2c74122
commit 78b239545b

View File

@ -128,7 +128,9 @@ QString VNote::generateHtmlTemplate(const QString &p_renderBg,
"code { word-break: break-all !important; }\n"
"div.flowchart-diagram { overflow: hidden !important; }\n"
"div.mermaid-diagram { overflow: hidden !important; }\n"
"a { word-break: break-all !important; }\n";
"a { word-break: break-all !important; }\n"
"td.hljs-ln-code { white-space: pre-wrap !important; "
"word-break: break-all !important; }\n";
if (!g_config->getEnableImageConstraint()) {
// Constain the image width by force in PDF, otherwise, the PDF will
// be cut off.