mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
Fixed QTF issue
git-svn-id: svn://ultimatepp.org/upp/trunk@493 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
b802e680c5
commit
a2243b495a
1 changed files with 2 additions and 1 deletions
|
|
@ -228,7 +228,6 @@ void RichQtfParser::SetFormat()
|
|||
}
|
||||
|
||||
void RichQtfParser::Flush() {
|
||||
SetFormat();
|
||||
if(text.GetLength()) {
|
||||
ASSERT(!istable);
|
||||
paragraph.Cat(text, format);
|
||||
|
|
@ -877,6 +876,7 @@ void RichQtfParser::Parse(const char *qtf, byte _accesskey)
|
|||
if(*term == '\1') {
|
||||
if(istable)
|
||||
EndPart();
|
||||
SetFormat();
|
||||
const char *b = ++term;
|
||||
for(; *term && *term != '\1'; term++)
|
||||
if(*term == '\n') {
|
||||
|
|
@ -891,6 +891,7 @@ void RichQtfParser::Parse(const char *qtf, byte _accesskey)
|
|||
else {
|
||||
if(!Key('`')) Key('\\');
|
||||
if((byte)*term >= ' ') {
|
||||
SetFormat();
|
||||
do {
|
||||
if(istable)
|
||||
EndPart();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue