From: Michal H. <ms...@gm...> - 2012-01-25 19:12:52
|
I have encountered this change but to be honest I do not understand it. Could you clarify Eva, please? --- >From 0a9f497de3904b730df3d7cb2e9c3ac95a63c411 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eva=20Pe=C5=A1kov=C3=A1?= <car...@gm...> Date: Wed, 25 Jan 2012 20:09:55 +0100 Subject: [PATCH] Why do we need this??? --- src/kernel/cstream.h | 11 ++++++++--- 1 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/kernel/cstream.h b/src/kernel/cstream.h index 480d8cb..6105622 100644 --- a/src/kernel/cstream.h +++ b/src/kernel/cstream.h @@ -501,17 +501,22 @@ namespace utils { * @param end End iterator. * @param out Output valid string. */ +// peskova template<typename Iter> void -makeStreamPdfValid (Iter it, Iter end, std::string& out) +makeStreamPdfValid (Iter it, Iter end, std::string& out) //this is called only when validatin stream { - for (; it != end; ++it) + bool lastCharEscape = false; + for (; it != end; ++it) //remove \\ and \( because of text streams -> text in poertator "(" { + //looking for <6a65 that getStringRepr does not handle well + if (*it == '\\') + lastCharEscape = true; + //----------------- //TODO check //if ( '\\' == (*it)) //{ // "Escape" every occurence of '\' // out += '\\'; //} - out += *it; } } -- 1.7.8.3 -- Michal Hocko |