pombreda / rst2pdf

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

Consecutive spaces are being merged inside inline literals #427

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Use an inline literal containing multiple consecutive spaces, such as ``foo  
  bar``. Use a monospace font so that it's easier to visualize the results.

2. Generate the PDF as usual.

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

The consecutive spaces get merged into just one.

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

* Version of rst2pdf?

0.16

* Version of reportlab?

2.3

* Are you using wordaxe, and if true, what version?

No (at least not explicitely).

* Are you using rst2pdf with Sphinx, and if true, what version?

Same.

Please provide any additional information below.

Literal blocks seem to properly handle consecutive spaces, that is, they don't 
get merged. Unfortunately, I cannot use literal blocks in my case because they 
strip leading whitespace and consider it as part of the indentation. To 
illustrate this, if I have a literal block like below:

::

  foo bar
  baz

The two leading spaces get stripped, even if I really meant to have a single 
space at the beginning of each line (and that the first space was there for the 
syntax only). Escaping spaces in this situation did not seem to help at all 
either.

Original issue reported on code.google.com by mhenr...@gmail.com on 5 Dec 2011 at 10:28

GoogleCodeExporter commented 9 years ago
Added failing test case in revno 2450

Original comment by roberto.alsina on 4 Mar 2012 at 12:28

GoogleCodeExporter commented 9 years ago

Original comment by roberto.alsina on 4 Mar 2012 at 12:28

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r2496.

Original comment by roberto.alsina on 7 Mar 2012 at 1:44