fix: Force font-size and line-height for plaintext PDFization (#4879)

Fixes #4343
This commit is contained in:
Lars Eggert 2022-12-13 18:10:14 +02:00 committed by GitHub
parent 49f586ed4f
commit 017b5f54d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View file

@ -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]

View file

@ -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 {