Skip to content

Commit afc9c60

Browse files
author
Jonathan Marler
committed
Escape commas in option flag arguments
1 parent ffc2ea2 commit afc9c60

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)