Tyrin Avery wrote: > > I am using XMLMind with the dita2wiki toolkit to generate content for a > wiki from dita files. > > Unfortunately, XMLMind allows newline characters in xref elements. > > For example > > <xref > > href=”../myfolder/myfile.dita”> > > > > These newline characters cause the xrefs to be created on multiple > lines, ie. > > > > [Custom > > Objects | custom objects] > > > > This breaks the reference and the wiki can’t interpret it. > > I don’t know why this happens, but the dita2wiki help forum suggested > for a similar problem that it was an issue with the editing tool and > that the solution was to have a tool with a prettify option.
XML processors such as dita2wiki are not supposed to be that sensitive to whitespace found in XML files. > > Is it possible for XMLMind to not allow newlines inside links? XMLmind XML Editor does not really *allow* newlines inside links. I mean, you cannot type a newline character in an xref element. However, by default, XMLmind XML Editor creates *indented* XML files and in order to indent XML, it may have to break a link into several lines. > Or have a prettify option for the code? Yes. Please use "Options|Preferences", "Save" section and specify: Indentation: 0 Max. line length: 10000000 (Yes, 10 millions) More info.: http://www.xmlmind.com/xmleditor/_distrib/doc/help/com.xmlmind.guiutil.PreferencesEditorDialog.html#saveOptions -- XMLmind XML Editor Support List [email protected] http://www.xmlmind.com/mailman/listinfo/xmleditor-support

