Commit 08409a46 authored by Daniel Teske's avatar Daniel Teske

CustomWizard: Tweak replaceFields, replace %% with %

Otherwise there's no way to have a '%' in a file after replacement.

Task-number: QTCREATORBUG-9793

Change-Id: I3c9bfac9f3bd8a19bbc293839d9d69ccf951e264
Reviewed-by: default avatarFriedemann Kleint <Friedemann.Kleint@digia.com>
parent 073e5d66
......@@ -853,7 +853,9 @@ bool replaceFieldHelper(ValueStringTransformation transform,
if (nextPos == -1)
break;
if (nextPos == pos + 1) {
pos = nextPos; // Skip '%%'
pos = nextPos; // Replace '%%' with '%'
s->remove(pos, 1);
pos = pos + 1;
continue;
}
// Evaluate field specification for modifiers
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment