<p>I really love geany because its light weight and fast for writing python codes but I really hate how it handles indentation. When I send pyton code to vte <strong>send selection to terminal</strong> some times it throws <strong>IndentationError: unexpected indent</strong>. A simple example would be this function.</p>
<pre><code>def load_data(mode='train'):
    mnist=input_data.read_data_sets("MNIST/",one_hot=True)
    if mode=='train':
        x_train,y_train,x_valid,y_valid=mnist.train.images, mnist.train.labels,mnist.validation.images, mnist.validation.labels
        return  x_train,y_train,x_valid,y_valid
    elif=='test':
        x_test,y_test=mnist.test.images, mnist.test.labels
    return x_test,y_test
</code></pre>
<p>This error occurs everywhere were I write multi-line indents and mostly happens with codes copied from elsewhere. Because of this I always have to use a second ide to correct these problems.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/issues/2098">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABDrJ7MnrQU6sY_5pdu9oS_FXAgjh4Wfks5vS_CugaJpZM4bbEYh">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABDrJ9YFtJugy6Xx3_S6lJsl-3lkkLxjks5vS_CugaJpZM4bbEYh.gif" height="1" width="1" alt="" /></p>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/geany/geany","title":"geany/geany","subtitle":"GitHub repository","main_image_url":"https://github.githubassets.com/images/email/message_cards/header.png","avatar_image_url":"https://github.githubassets.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/geany/geany"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"IndentationError in python (#2098)"}],"action":{"name":"View Issue","url":"https://github.com/geany/geany/issues/2098"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/issues/2098",
"url": "https://github.com/geany/geany/issues/2098",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>