From 8d22fdec5078d3392f59afa6a319a187f6dc291f Mon Sep 17 00:00:00 2001 From: Asger Ottar Alstrup Date: Thu, 19 Oct 2006 20:01:02 +0000 Subject: [PATCH] - Fix export of single characters - use put rather than << git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15386 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/paragraph_pimpl.C | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/paragraph_pimpl.C b/src/paragraph_pimpl.C index b9e7339cd5..8655111de7 100644 --- a/src/paragraph_pimpl.C +++ b/src/paragraph_pimpl.C @@ -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; -- 2.39.2