I am using <pre><code> blocks to paste code into my document to process with highlight.js and Prince. It is not preserving the indentation in the final PDF.
using the following CSS to style the code (SCSS).
pre {
white-space: pre-line;
width: 100%;
code {
font-family: 'Source Code Pro', monospace;
font-size: 1em;
line-height: 1.2em;
overflow-wrap: break-word;
tab-size: 2;
width: 100%;
word-wrap: break-word;
}
}
I'm trying to figure out if the problem is in Prince or during the transformation from XML to XHTML
Carlos
using the following CSS to style the code (SCSS).
pre {
white-space: pre-line;
width: 100%;
code {
font-family: 'Source Code Pro', monospace;
font-size: 1em;
line-height: 1.2em;
overflow-wrap: break-word;
tab-size: 2;
width: 100%;
word-wrap: break-word;
}
}
I'm trying to figure out if the problem is in Prince or during the transformation from XML to XHTML
Carlos