<p></p>
<p>No, it only applys it to each line once, the second rstrip call is to the whole contents, not sure what it and the third manual removal is for, I suspect that could be removed but maybe there is/was a Windows/python 2 reason?</p>
<p>That said, probably the whole script could be removed since Geany itself can do those things and wholesale applying it to files is risky since in markdown two trailing spaces are markup.</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/2897#issuecomment-920575878">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ4QXXPXALJLCONOQIDUCF2MBANCNFSM5ED3FJPQ">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub">Android</a>.
<img src="https://github.com/notifications/beacon/AAIOWJ6H4OJZSX3ZBD4GRHDUCF2MBA5CNFSM5ED3FJP2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOG3PN7BQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/issues/2897#issuecomment-920575878",
"url": "https://github.com/geany/geany/issues/2897#issuecomment-920575878",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>