1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-07-30 19:23:04 +03:00

Use latex sloppypar to fix monospace wrapping in PDF rendering.

Monospaced identifiers could end up running over if latex was not able to find a place to break the line. Using sloppypar forces breaks so monospaced identifiers don't run over or get broken up.

Also add vspace to admonitions so they have some separation from the prior text.
This commit is contained in:
David Steele
2021-02-10 09:10:51 -05:00
parent c7d7280fa8
commit 26cbebbda7
2 changed files with 8 additions and 7 deletions

View File

@ -110,7 +110,8 @@ my $oRenderTag =
'backrest' => [undef, ''],
'proper' => ['\textnormal{\texttt{', '}}'],
'postgres' => ['PostgreSQL', ''],
'admonition' => ["\n\\begin{leftbar}\n\\textit{\\textbf{", "}\n\\end{leftbar}\n"],
'admonition' =>
["\n\\vspace{.5em}\\begin{leftbar}\n\\begin{sloppypar}\\textit{\\textbf{", "}\\end{sloppypar}\n\\end{leftbar}\n"],
},
'html' =>