]> git.lyx.org Git - lyx.git/blobdiff - src/output_xhtml.cpp
Typo.
[lyx.git] / src / output_xhtml.cpp
index 11d2de2734c90c309ebd4e368919999dbe3e070a..d03954461068cf2de2f4ad4655c9469b06ff2ad8 100644 (file)
@@ -125,7 +125,7 @@ string cleanAttr(string const & str)
        string::const_iterator it = str.begin();
        string::const_iterator en = str.end();
        for (; it != en; ++it)
-               newname += isalnum(*it) ? *it : '_';
+               newname += isAlnumASCII(*it) ? *it : '_';
        return newname; 
 }
 
@@ -727,7 +727,7 @@ ParagraphList::const_iterator makeParagraphs(Buffer const & buf,
                //   (ii) We didn't open it and html_in_par is true, 
                //        but we are in the first par, and there is a next par.
                ParagraphList::const_iterator nextpar = par;
-               nextpar++;
+               ++nextpar;
                bool const needclose = 
                        (opened && (!runparams.html_in_par || nextpar != pend))
                        || (!opened && runparams.html_in_par && par == pbegin && nextpar != pend);