Le 31 mai 07 ? 10:41, Hussein Shafie a ?crit :
> Daniel Dekany wrote:
>> When I paste text from another application that contains line-breaks
>> XXE will *show* the text with line-breaks in the styled view, yet
>> there is nothing in the XML that would cause those line-breaks (like
>> <br/>-s would in XHTML).
>
> Newlines characters are not normalized to whitespace characters in the
> target of the paste command.
>
> This is totally harmless. That is, this is visually disturbing, but
> does
> not corrupt your XML document.
>
>
>
>> And indeed if I save, close, and re-open the document, those
>> strange visual line-breaks are gone. I think those
>> line-breaks shouldn't be there directly after the pasting either.
>>
>> I'm using XXE 3.6.0, J2SE 1.6.0_01, Windows XP.
>>
>
> We'll try to fix this bug in next release. Thank you for reporting it.
This modification should be discussed before:
Quite often, these line breaks are meaningful, and the element within
which the text has been pasted needs to be split where a line break
occurs.
(For instance, in poetry, these line breaks separated the lines of
the poem and two line breaks separated two strophes).
Normalising white space before pasting would lose the information,
compelling the editor to manage beforehand his copy/paste operation(s).
Some of my users are trained into using the present feature to paste
the whole poem in a line element,
then set the caret at the linebreaks and use the split function to
structure their text.
Not very clean, but effective...
(Btw, I had written an ad hoc macro that does the trick in one
operation, but it seems they don't really use it! ? My documentation
and training aren't very effective ;-( )
>
> --
> XMLmind XML Editor Support List
> xmleditor-support at xmlmind.com
> http://www.xmlmind.com/mailman/listinfo/xmleditor-support
> ----------------------------------------------------------------------
> -----------------
> Orange vous informe que cet e-mail a ete controle par l'anti-virus
> mail.
> Aucun virus connu a ce jour par nos services n'a ete detecte.
>
>
>