pombreda / rst2pdf

Automatically exported from code.google.com/p/rst2pdf
Other
0 stars 0 forks source link

output from code-block:: html not always consistent #493

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Write rst with html code-blocks (I am attaching an example file)
2. Convert the file from rst to pdf using rst2pdf
3. Open the file and you will see the code blocks have different font sizes and 
there is nothing in the code that indicates there should be differences (I am 
also attaching the pdf output)

What is the expected output? What do you see instead?

Please answer the following questions, they are *very* important:

* Version of rst2pdf?
rst2pdf-0.93.dev_r2632
* Version of reportlab?
2.7
* Are you using wordaxe, and if true, what version?
No
* Are you using rst2pdf with Sphinx, and if true, what version?
No
Please provide any additional information below.

Original issue reported on code.google.com by Mariano....@gmail.com on 26 Apr 2013 at 2:06

Attachments:

GoogleCodeExporter commented 9 years ago
This is because by default, rst2pdf will shrink your code until it fits in the 
page horizontally.

If you want to avoid this behaviour, check the --fit-literal-mode option:

  --fit-literal-mode=MODE
                        What to do when a literal is too wide. One of error,
                        overflow,shrink,truncate. Default="shrink"

Original comment by roberto.alsina on 26 Apr 2013 at 2:12

GoogleCodeExporter commented 9 years ago
Gracias for such a super-fast answer!

Original comment by Mariano....@gmail.com on 26 Apr 2013 at 2:43