From: Alan K. <jyt...@xh...> - 2019-04-17 10:13:42
|
Hi Chris. [Chris] > the [modjy] initial_env setting ... I believe the documentation is incorrect on variable separators: I think you're right there. [Chris] > It claims a semi-colon should be used for the separator. Checking code .. and .. tests > it looks like it a new line is expected (and testing this out works fine, semi-colon does not). > Can anyone confirm/deny this? You're right about the code using newlines as a separator, so you should definitely consider the code authoritative, not the documentation. It's been 15 years since I wrote it, so I can't specifically remember my thought processes back then. But I'm thinking that semicolons make more sense as a separator, when all of the values are on a single line. Using newline as a separator works for more forgiving textual formats. Since the modjy parameters we're talking about are set in an XML file (web.xml), newline as a separator works fine. So although semicolons may be more suitable in a single line situation, newline is a not problem here. So my inclination is not to change the code to fit the documentation, but to change the documentation to fit the code. I will do exactly that. Does that answer the question Chris? Alan. |