Skip to content

Commit 25696e9

Browse files
authored
Merge pull request #2188 from marler8997/fixCommasInOptionFlag
Escape commas in option flag arguments
2 parents ffc2ea2 + afc9c60 commit 25696e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ddoc_preprocessor.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ auto genSwitches(string fileText)
302302
if (flagEndPos < 0)
303303
switchName = "$(SWNAME -%s)".format(flag);
304304
else
305-
switchName = "$(SWNAME -%s)%s".format(flag[0..flagEndPos], flag[flagEndPos..$]);
305+
switchName = "$(SWNAME -%s)%s".format(flag[0..flagEndPos], flag[flagEndPos..$].escapeDdoc);
306306

307307
auto currentFlag = "$(SWITCH %s,\n
308308
%s

0 commit comments

Comments
 (0)