[EMAIL PROTECTED] wrote:
I tried it on some piece of LCLProc. I ran into the following when I tried
to commit
the result to svn:
WriteXMLFile(doc, FDocFileName) creates a new xml file. Multiline
Strange, it should work on the exisiting LCLProc.xml, as it checks if the
file exists or not. I believe that if it creates a new file the file will
be corrupt for FPDoc.
It works on the exisiting file, but writing the Xml-doc means replacing it.
Maybe the XMLWrite unit should generate line-endings that are conformant
to the OS
it is running on. Or does the XML-specification dictate unix line-endings?
Seems that it's XML specification:
2.11 End-of-Line Handling
XML parsed entities are often stored in computer files which, for editing
convenience, are organized into lines. These lines are typically separated
by some combination of the characters CARRIAGE RETURN (#xD) and LINE FEED
(#xA).
To simplify the tasks of applications, the XML processor MUST behave as if
it normalized all line breaks in external parsed entities (including the
document entity) on input, before parsing, by translating both the
two-character sequence #xD #xA and any #xD that is not followed by #xA to
a single #xA character.
Dunno yet how to fix this...
Maybe like this:
A: if we want to store the xml files with #10 line ending, then we should fix the
svn properties acordingly.
B: instead of using DescrMemo.Text use DescrMemo.Lines.DelimitedText with Delimeter
:= #10;
The question is: can we use packages to install add-ins (or plug-ins) into
the IDE?
Then we can offer this dialog as a plug-in package that people can install
(and we
don't need $IFDEF in lazarus itself).
True, but it's been ifdef'ed because it's stil a prototype. As soon as
it's stable and working correct that you can lose the ifdefs. I believe
that the LazDoc should be considered as an intrinsic part of Lazarus.
On the other hand I agree that you CAN distribute it as an add-on. But
this applies to more stuff under tools, like diff amongst others.
I don't know if and how plug-ins are possible at all.
Vincent.
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives