Jean Jordaan wrote: > > I've encountered this behaviour a couple of times -- I have this:: > > <para>Q: asdf <xi:include ... /></para> > > I want to turn it into this:: > > <para><remark>asdf <xi:include ... /></remark></para>
Select all the child nodes of <para> (e.g. select <para> then type Esc Down-Arrow), then convert selected nodes to <remark> (e.g. using Ctrl-T). > I can't cut'n'paste the text and the include at the same time, so I do > first the one then the other (that's just an aside ;-p). Now I have:: > > <para>Q: <remark>asdf <xi:include ... /></remark></para> > > When I delete the 'Q: ' I end up with the situation shown in the > attached screenshots: an empty text node before the <remark> starts. > I have to backspace to join this paragraph with the previous, and > then hit return to restore the paragraph break (may be a hassle if > the previous element isn't a paragraph). Or I can close and reopen > the document. You have problems because you seem to use the text selection too much. Text selection allows you to do very simple things (e.g. convert some text to <emphasis>). Node selection allows you to do everything else. > I think it should be possible to delete a node like that by right-click > delete or the delete key, and if it isn't going to be there after > save/reopen, I don't think it should be there in the first place. Use the node selection to select the empty text node (e.g. click on it in the node path bar), then press DEL.

