Auto-translated
I deal with extra spaces in Notepad as follows.
Since the "unnecessary" spaces that need to be removed before posting a message on the forum are usually between the < and > tags, I simply run a replacement for the character combinations "<"+Space and ">"+Space.
If there are several spaces in a row, I repeat this operation several times.
We do the same in cases where spaces "interfere" in other places.
P.S. Why in Notepad and not, for example, in Word?
Because the latter automatically replaces all quotes of the form " " with « ».
But, in principle, there is a solution for this as well.
Клан Homo homini
Charity suffereth long, and is kind; charity envieth not; charity vaunteth not itself, is not puffed up,
Doth not behave itself unseemly, seeketh not her own, is not easily provoked, thinketh no evil;
Rejoiceth not in iniquity, but rejoiceth in the truth;
Beareth all things, believeth all things, hopeth all things, endureth all things. Charity never faileth...
Charity suffereth long, and is kind; charity envieth not; charity vaunteth not itself, is not puffed up,
Doth not behave itself unseemly, seeketh not her own, is not easily provoked, thinketh no evil;
Rejoiceth not in iniquity, but rejoiceth in the truth;
Beareth all things, believeth all things, hopeth all things, endureth all things. Charity never faileth...