]> git.lyx.org Git - features.git/commitdiff
- Fix export of single characters - use put rather than <<
authorAsger Ottar Alstrup <alstrup@lyx.org>
Thu, 19 Oct 2006 20:01:02 +0000 (20:01 +0000)
committerAsger Ottar Alstrup <alstrup@lyx.org>
Thu, 19 Oct 2006 20:01:02 +0000 (20:01 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15386 a592a061-630c-0410-9148-cb99ea01b6c8

src/paragraph_pimpl.C

index b9e7339cd5eb33271b00f7a0a550d195ec73b37b..8655111de7bc2c0f60ba66bac4bcda27f4de6023 100644 (file)
@@ -560,14 +560,14 @@ void Paragraph::Pimpl::simpleTeXSpecialChars(Buffer const & buf,
                                   << '}';
                                column += 13;
                        } else {
-                               os << c;
+                               os.put(c);
                        }
                        break;
 
                case '|': case '<': case '>':
                        // In T1 encoding, these characters exist
                        if (lyxrc.fontenc == "T1") {
-                               os << c;
+                               os.put(c);
                                //... but we should avoid ligatures
                                if ((c == '>' || c == '<')
                                    && i <= size() - 2
@@ -584,7 +584,7 @@ void Paragraph::Pimpl::simpleTeXSpecialChars(Buffer const & buf,
                        }
                        // Typewriter font also has them
                        if (font.family() == LyXFont::TYPEWRITER_FAMILY) {
-                               os << c;
+                               os.put(c);
                                break;
                        }
                        // Otherwise, we use what LaTeX
@@ -626,14 +626,15 @@ void Paragraph::Pimpl::simpleTeXSpecialChars(Buffer const & buf,
                                os << "\\pounds{}";
                                column += 8;
                        } else {
-                               os << c;
+                               os.put(c);
                        }
                        break;
 
                case '$': case '&':
                case '%': case '#': case '{':
                case '}': case '_':
-                       os << '\\' << c;
+                       os << '\\';
+                       os.put(c);
                        column += 1;
                        break;