<p><strong><code>View->Show Whitespace</code></strong> and <strong><code>View->Show Indentation Guides</code></strong> helps to see your Indentation Errors, and <strong><code>Document->Replace Tabs With Spaces</code></strong> helps to fix them when pasting in random code. Also make sure <strong><code>Document->Indent Type</code></strong> is set to <code>Spaces</code> and <strong><code>Document->Indent Width</code></strong> is set to 4 (or whatever you use).</p>
<p>This isn't so much a Geany issue as a an issue with Python's annoying whitespace semantics.</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#issuecomment-469071387">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABDrJ9hK1uT-1KbUc0t0tNA2ewNCDzWuks5vTEv_gaJpZM4bbEYh">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABDrJzHFo-ERUqVySp71p5JCqL_EU3siks5vTEv_gaJpZM4bbEYh.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":"PERSON","message":"@codebrainz in #2098: **`View-\u003eShow Whitespace`** and **`View-\u003eShow Indentation Guides`** helps to see your Indentation Errors, and **`Document-\u003eReplace Tabs With Spaces`** helps to fix them when pasting in random code. Also make sure **`Document-\u003eIndent Type`** is set to `Spaces` and **`Document-\u003eIndent Width`** is set to 4 (or whatever you use).\r\n\r\nThis isn't so much a Geany issue as a an issue with Python's annoying whitespace semantics."}],"action":{"name":"View Issue","url":"https://github.com/geany/geany/issues/2098#issuecomment-469071387"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/issues/2098#issuecomment-469071387",
"url": "https://github.com/geany/geany/issues/2098#issuecomment-469071387",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>