FixNonBreakingSpaces() public méthode

Apply non-breaking spaces for abbreviated SI units, imperial units, pp for pages. Remove incorrect space before % symbol
public FixNonBreakingSpaces ( string articleText ) : string
articleText string The wiki text of the article.
Résultat string
        public void TestFixNonBreakingSpacesDE()
        {
#if DEBUG
            Variables.SetProjectLangCode("fr");
            parser = new Parsers();
            Assert.AreEqual(@"a 50.247 µm laser", parser.FixNonBreakingSpaces(@"a 50.247µm laser"));
            Assert.AreEqual(@"a 50.247um laser", parser.FixNonBreakingSpaces(@"a 50.247um laser"));

            Variables.SetProjectLangCode("en");
            parser = new Parsers();
            Assert.AreEqual(@"a 50.247 um laser", parser.FixNonBreakingSpaces(@"a 50.247um laser"));
#endif
        }