[oXygen-user] oXygen-8.2 XHTML Format and Indent Errors
Sorin Ristache
Mon May 21 10:17:30 CDT 2007
Hello,
The option that contains "Indent (when typing)" in name should be
applied only for text inserted by typing the characters directly in the
document. The option that contains "Indent on paste" should be applied
only for a block of text pasted in the edited document. I see that the
first option changes the indenting of text pasted in a <script> element
but it should not have any effect on pasted text. Only the second one
should have an effect on pasted text. We will fix that.
Regards,
Sorin
Robert Koberg wrote:
> I am not sure I understand what you are saying... How can you detect
> what was added by the keyboard (or some other input method) versus
> existing text, pasted or generated? And why should it matter? I don't
> see the point - probably missing something.
>
> On Mon, 2007-05-21 at 14:57 +0300, Sorin Ristache wrote:
>> Hello,
>>
>> When the option "Indent (when typing) in preserve space elements" is
>> unchecked the pasted block is preserved without applying indenting and
>> it works correctly. We added "when typing" because it is used only when
>> editing text with the keyboard but it is not used by the Format and
>> Indent action so I think the two words should not be removed.
>>
>> When both options are checked the indenting is not correct when you
>> paste CSS code in a script element. You reported the problem some days ago:
>>
>> http://www.oxygenxml.com/pipermail/oxygen-user/2007-May/001126.html
>>
>> but it was not planned for this build. We will fix it in a future
>> version of oXygen.
>>
>>
>> Regards,
>> Sorin
>>
>>
>> Robert Koberg wrote:
>>> Maybe just remove the '(when typing)' in the option text to
>>> make it clearer ??
>>>
>>> But if both the above options are checked in the
>>> Options/Preferences/Editor/Format/XML dialog then pasting something
>>> like:
>>>
>>> if (true) {
>>> alert('boo');
>>> }
>>> into a script element becomes:
>>> <script>
>>> if (true) {
>>> alert('boo');
>>> }
>>> </script>
More information about the oXygen-user
mailing list