mirror of
https://github.com/gryf/wmaker.git
synced 2026-02-16 05:55:45 +01:00
Changed handling of quoted strings in the menu parser for consistency
As reported by Amadeusz Sławiński, the support for (d)quoted string
in the menu file was not exactly the same as in previous versions
of WindowMaker, so we had a regression which is not acceptable.
This patch propose a consistent handling for (d)quoted text instead
of the previous on-the-title-only code; now all (d)quoted strings
are still kept as-is (as expected) but the (d)quotes are always
removed.
As a side note, it also improve the support for \escaped character
to work correctly as mentioned in the example of the default menu.
Note: This reverts b2e7620868 which
was an incomplete solution to the problem.
This commit is contained in:
committed by
Carlos R. Mafra
parent
2eb1107e20
commit
5a3cab3cef
@@ -79,8 +79,7 @@ void menu_parser_free_macros(WMenuParser parser);
|
||||
|
||||
WParserMacro *menu_parser_find_macro(WMenuParser parser, const char *name);
|
||||
|
||||
void menu_parser_expand_macro(WMenuParser parser, WParserMacro *macro,
|
||||
char *write_buf, int write_buf_size);
|
||||
void menu_parser_expand_macro(WMenuParser parser, WParserMacro *macro);
|
||||
|
||||
int isnamechr(char ch); // Check if char is valid character for a macro name
|
||||
|
||||
|
||||
Reference in New Issue
Block a user