<p></p>
<p>I've find out the problem! PrettyPrinter crushes ONLY if there is <code>encoding="windows-1251"</code> - no matter which encoding is really used, which alphabet is used and which part of document is selected! <g-emoji class="g-emoji" alias="smiley" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f603.png">😃</g-emoji><br>
I think it's still a bug and it should be fixed <g-emoji class="g-emoji" alias="relieved" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f60c.png">😌</g-emoji> Just ingore <code>encoding=</code> in <code><?xml ... ?></code> and everybody will be happy! <g-emoji class="g-emoji" alias="sunglasses" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f60e.png">😎</g-emoji></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-plugins/issues/994#issuecomment-678147956">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ3I3NVFBY7NIVKN62LSBY64HANCNFSM4PTOIAEQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAIOWJ3IK7S67Y66KYCRI5LSBY64HA5CNFSM4PTOIAE2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFBV3O5A.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-plugins/issues/994#issuecomment-678147956",
"url": "https://github.com/geany/geany-plugins/issues/994#issuecomment-678147956",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>