fix: Force font-size and line-height for plaintext PDFization (#4879)
Fixes #4343
This commit is contained in:
parent
49f586ed4f
commit
017b5f54d1
|
@ -618,7 +618,6 @@ class DocumentInfo(models.Model):
|
|||
stylesheets.append(finders.find("ietf/css/document_html_txt.css"))
|
||||
else:
|
||||
text = self.htmlized()
|
||||
stylesheets.append(io.BytesIO(b"body { font-size: 9.2pt; }"))
|
||||
|
||||
cache = caches["pdfized"]
|
||||
cache_key = name.split(".")[0]
|
||||
|
|
|
@ -290,10 +290,14 @@ tbody.meta tr {
|
|||
margin: .75in;
|
||||
}
|
||||
|
||||
* {
|
||||
font-size: 9.75pt !important;
|
||||
line-height: 1.25em !important;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
font-size: 10pt;
|
||||
}
|
||||
|
||||
pre {
|
||||
|
|
Loading…
Reference in a new issue