https://bugs.documentfoundation.org/show_bug.cgi?id=148025

            Bug ID: 148025
           Summary: PDF does not write leading spaces
           Product: LibreOffice
           Version: 3.3.0 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Printing and PDF export
          Assignee: libreoffice-bugs@lists.freedesktop.org
          Reporter: flywi...@gmail.com

Copy and paste source code text from libreoffice pdf guides loses indent space
characters.

Reproducing:

For example, the bottom of
https://documentation.libreoffice.org/assets/Uploads/Documentation/en/GS7.3/GS73-GettingStarted.pdf#page=431
has sample python code. A copy and paste as text loses the blank line and any
line with leading spaces is pasted with a single space before the code, losing
the other spaces. Tabs are ignored. Code is formatted in Liberation Mono, a
fixed-pitch font, with 4 spaces per indent.

Sample output:

import uno
def HelloWorld():
 doc = XSCRIPTCONTEXT.getDocument()
 cell = doc.Sheets[0]['A1']
 cell.setString('Hello World from Python')
 return

This is important for a language like python because indents are part of the
syntax.

It's expected the space characters would be retained, at least with an option.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to