[Developers] patch: don't highlight parameter parser warning messages about newlines in quoted strings

Thomas Radke tradke at aei.mpg.de
Wed Jun 29 12:04:01 CDT 2005


The attached patch reverts printing the parameter parser's warning message

   "Warning: Quoted string contains newline for token <token>"

from bold to normal font.

Using escape sequences to highlight warnings during the parameter file 
parsing seems impractical: (1) the specific warning about a newline 
character in a quoted string indicates a problem which in most cases 
isn't one. I've seen many users using this "feature" in their parfiles 
to make them more readable. (2) There is a flesh parameter 
Cactus::highlight_warning_messages by which the user can choose whether 
warning messages should be highlighted or not. The parameter parser 
disregards this parameter which may suggest a bug to the user.


-- 
Cheers, Thomas.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ParseFile.patch
Type: text/x-patch
Size: 1154 bytes
Desc: not available
Url : http://www.cactuscode.org/pipermail/developers/attachments/20050629/3cba23f5/attachment.bin 


More information about the Developers mailing list