Menu

#1698 re #1696 Pasting removes leading spaces from text in 2.10.8

None
works-for-me
5*
2016-03-22
2016-03-10
Anonymous
No

Tim,

I cannot find a way to continue adding comments to the [bugs:#1696] after your request for MWE, so here it is (in case SF strips the leading spaces too, the first group of 3 lines has 1, 2 and 3 leading tabs and the 2nd group has 2, 4 and 6 leading spaces):

\begin{lstlisting}
aaaaaaaaaaaa
bbbbbbbbbbbbb
ccccccccccccccccc

aaaaaaa
bbbbbbbbb
ccccccccccccc
\end{lstlisting}

If you tried to create {lstlisting} environment, then paste the contents between \begin and \end into the editor, they would be stripped of the leading spaces and tabs.

By the way, this is not a new issue in 2.10.8, it existed in 2.8 as well if it matters.

Thank you!

Related

Bugs: #1696

Discussion

  • Tim Hoffmann

    Tim Hoffmann - 2016-03-12

    I think sourceforge requires you to be logged in to add comments to an existing request.

    The behavior is actually intended if you have Options -> Editor -> Indentation Mode set to "Indent and unindent automatically". Choose one of the other options to prevent this behavior.

     
  • Tim Hoffmann

    Tim Hoffmann - 2016-03-12
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,6 +1,6 @@
     Tim,
    
    -I cannot find a way to continue adding comments to the #1696 after your request for MWE, so here it is (in case SF strips the leading spaces too, the first group of 3 lines has 1, 2 and 3 leading tabs and the 2nd group has 2, 4 and 6 leading spaces):
    +I cannot find a way to continue adding comments to the [bugs:#1696] after your request for MWE, so here it is (in case SF strips the leading spaces too, the first group of 3 lines has 1, 2 and 3 leading tabs and the 2nd group has 2, 4 and 6 leading spaces):
    
     \begin{lstlisting}
     aaaaaaaaaaaa
    
    • Group: -->
     

    Related

    Bugs: #1696

  • Tim Hoffmann

    Tim Hoffmann - 2016-03-22
    • status: open --> works-for-me
     

Log in to post a comment.