The home page of this project has a grid of nine tiles, each linked to a topic. For some reason, Flare puts the source code into a single line, making edits very difficult. When I open the file in NotePad++ and format the code, Flare changes it back to a single line again. Any ideas as to why?
Hello kwag_myers. I may have solved your puzzle. I believe the issue (which I can recreate given your example) has to do with the fact that Flare's text editor expects and to some extent requires that your data be of an XML format. That is not the case with Notepad ++ which in that case you may simply be opening a text file.
I'm not sure what you are doing to check XML in Notepad++, but in any event I don't believe you are necessarily doing anything wrong or in your words have strayed from the path. I'm no expert here so perhaps others can chime in, but based on the article (and there are a few and I haven't checked all that many) it appears that line handling in XML can vary from program to program. Conceivably Flare and Notepad++ each have a different proprietary way of reading and displaying XML.
You can pose the question to MadCap. Realistically though it doesn't appear as though there is an actual "problem". If anything they may categorize this as an inconvenience (meaning the code works, albeit it is difficult for you to read in the editor because its all on one line).
roboHAL wrote:I'm not sure what you are doing to check XML in Notepad++
I'm using the UniversalIndentGUI plugin, which has a Check XML Syntax feature. I found that if I used the Pretty Print with Line Breaks feature, the formatting carried over to Flare. Strange that doing manually didn't.
Anyway, problem solved.
"I'm tryin' to think, but nothin' happens!" - Curly Joe Howard
roboHAL wrote:I'm not sure what you are doing to check XML in Notepad++
I'm using the UniversalIndentGUI plugin, which has a Check XML Syntax feature. I found that if I used the Pretty Print with Line Breaks feature, the formatting carried over to Flare. Strange that doing manually didn't.
Anyway, problem solved.
In my experience, Flare is pretty good at generating and reading back its own XML. When it does, it tends to use line-breaks. I have brought XML in from other sources and not realized it was all on one line until I had to go into the source editor in Flare.
I think your experience with Pretty Print actually injecting line breaks is proof that there were previously no line breaks in your code. Notepad++ and its plugins are very good about not changing your source even though they will display it in all sorts of useful ways -- so it may have seemed like there were line breaks even though there weren't.
David Muir | Technical Writer | Microdea Inc. | Markham ON | Canada