Author: gs Date: Mon Apr 23 13:11:40 2012 New Revision: 67992 URL: http://svn.opensuse.org/viewcvs/yast?rev=67992&view=rev Log: handle \f Modified: trunk/ncurses/src/NCRichText.cc Modified: trunk/ncurses/src/NCRichText.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCRichText.cc?rev=67992&r1=67991&r2=67992&view=diff ============================================================================== --- trunk/ncurses/src/NCRichText.cc (original) +++ trunk/ncurses/src/NCRichText.cc Mon Apr 23 13:11:40 2012 @@ -383,7 +383,7 @@ } -static wstring WStoken( L" \n\t\v\r" ); +static wstring WStoken( L" \n\t\v\r\f" ); inline void SkipWS( const wchar_t *& wch ) @@ -396,7 +396,7 @@ } -static wstring WDtoken( L" <\n\t\v\r" ); // WS + TokenStart '<' +static wstring WDtoken( L" <\n\t\v\r\f" ); // WS + TokenStart '<' inline void SkipWord( const wchar_t *& wch ) @@ -408,7 +408,7 @@ while ( *wch && WDtoken.find( *wch ) == wstring::npos ); } -static wstring PREtoken( L"<\n\v\r" ); // line manipulations + TokenStart '<' +static wstring PREtoken( L"<\n\v\r\f" ); // line manipulations + TokenStart '<' inline void SkipPreTXT( const wchar_t *& wch ) @@ -517,6 +517,7 @@ case L'\n': case L'\v': case L'\r': + case L'\f': if ( ! preTag ) { SkipWS( wch ); @@ -532,6 +533,7 @@ break; case L'\n': + case L'\f': PadNL(); // add new line break; -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org