Michael J. Bauder wrote: > One thing is left. We are planning to "port" a lot of documentation > pages from Word and > QuarkXPress to the docbook Format. I have recognized that linebreaks are > lost during copy and paste. > > Example text in Word: > Title<Return> > This is a text line.<Return> > This is another line.<Return> > > If you copy this to the clipboard and insert it in the XNLMind Editor > the <Return> Info goes visually away... > > In XMLMind TreeView i see this: > <Para> > TitleThis is a text line.This is another line. > > But i wanted to get. > <Para> > Title > <Para> > This is a text line. > <Para> > This is another line. > > How to achieve this? Is it possible to modify the clipboard in a way > that XmlMind inserts a para afer each line?
There is a special command which does that. Please add this snippet to your ~/.xxe/addon/customize.xxe (see http://www.xmlmind.com/xmleditor/_distrib/doc/configure/ch03s02.html) and restart XXE. After that, you'll have to use "Esc w" rather than Ctrl-W if you want to paste paras. --- <!-- ================================================================ Converts the content of the clipboard to a list of paragraphs, then inserts these paragraphs after selected element. Replace parameter="%0" by: * parameter="[blocks] %0", to convert multiple lines separated by open lines to a paragraph. Without this option, each non-empty line is converted to a paragraph. * parameter="[systemSelection] %0", to copy text from system selection rather than from clipboard (Unix/X11 only). ================================================================= --> <command name="insertAfterAsParagraphs"> <macro> <sequence> <command name="makeParagraphs" parameter="%0" /> <command name="paste" parameter="after[implicitElement] %_" /> </sequence> </macro> </command> <binding> <keyPressed code="ESCAPE" /> <charTyped char="w" /> <command name="insertAfterAsParagraphs" parameter="para" /> </binding> --- Consult the documentation of command makeParagraphs (http://www.xmlmind.com/xmleditor/_distrib/doc/commands/ch06s35.html) to configure its behavior to your needs.

