[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    Re: koffice/lib/store
From:       David Faure <faure () kde ! org>
Date:       2004-07-17 0:25:33
Message-ID: 200407170225.33831.faure () kde ! org
[Download RAW message or body]

On Saturday 17 July 2004 02:03, Nicolas Goutte wrote:
> If the first character is a space, it outputs it as a space, if the second is 
> a space too, it become <text:s> 

Yes, that's per the OASIS specification.

> and here is the catch! 
> 
> <span> <s/>some text</span>
> is the same as
> <span><s/>some text</span>
>
> As <span> and <s> are both opening tags, the white space in between does not 
> count.

That's not the case anymore. Following *your* advice :), we now use the
"report whitespace-only data" feature of QXmlSimpleReader, so such
whitespace *is* reported. Try it, it works :)
 
> Another problem for me, is that this function does not clear the control 
> characters not allowed in XML. However I need this for KWord 1.3 and RTF 
> import filters.

This could be done with a search-n-replace before calling the function.
Not the fastest solution, but well, for import filters it should be ok, no?
Better than having several versions of almost the same code IMHO.

> @note OASIS-specific
Good idea.

-- 
David Faure, faure@kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic