Menu

#1209 Copy&Paste removes tabs from text (TeXstudio 2.8.8)

None
works-for-me
nobody
None
1
2015-01-26
2015-01-26
Tilman
No

Dear TeXstudio developers,

every time I copy & paste a text that contains tabs (in the beginning of a line), some of the tabs are removed.

To reproduce, open a new empty file, copy & paste the text below, then paste again. Observe that the first paste operation inserted all tabs, the second one removed duplicate tabs.

Text:

\begin{figure}
    \centering
        foo

        bar

    \caption{test}
\end{figure}

Since SF replaces tabs with spaces, this is the text with each tab replaced by \t:

\begin{figure}
\t\centering
\t\tfoo
\t\t
\t\tbar
\t\t
\t\caption{test}
\end{figure}

Feel free to contact me if you need more information.

Bye, Tilman

1 Attachments

Discussion

  • Tilman

    Tilman - 2015-01-26

    Expected behaviour was: All tabs should be inserted by the second paste operation.

     
  • Benito van der Zander

    It is supposed to do this.

    You can change the indentation mode to "Keep Indentation" on the editor config page, if it should not change it.

    The inconsistence might be that it does not replace them on the first paste (it is an optimization: if the document is empty, paste without change. because otherwise it would be very slow when you pasting entire documents from one file to another)

     
  • Tilman

    Tilman - 2015-01-26

    Thanks, this did the trick.

    In german this setting is called "Einrückung der vorherigen Zeile übernehmen". Just in case someone has the same problem.

    Please close this bug.

     
  • Tim Hoffmann

    Tim Hoffmann - 2015-01-26
    • status: open --> works-for-me
    • Group: -->
     

Log in to post a comment.