]> git.lyx.org Git - lyx.git/blobdiff - src/output_xhtml.cpp
HyperlinkUi.ui:
[lyx.git] / src / output_xhtml.cpp
index 40759cea40450ef4ae7751e6397c33c027ec0481..d8299ce5c4511a30df32133583a5f86fde4c6aa1 100644 (file)
@@ -32,6 +32,7 @@
 #include "support/debug.h"
 #include "support/lassert.h"
 #include "support/lstrings.h"
+#include "support/textutils.h"
 
 #include <vector>
 
@@ -130,8 +131,7 @@ docstring cleanAttr(docstring const & str)
        docstring::const_iterator en = str.end();
        for (; it != en; ++it) {
                char_type const c = *it;
-               bool const is_alnum = c < 0x80 && isalnum(c);
-               newname += is_alnum ? c : char_type('_');
+               newname += isAlnumASCII(c) ? c : char_type('_');
        }
        return newname; 
 }