]> git.lyx.org Git - lyx.git/blobdiff - src/tests/check_ListingsCaption.cpp
Disable direct insertion of multiple spaces in mathed text
[lyx.git] / src / tests / check_ListingsCaption.cpp
index 2df43e8cdc475678bc726e5d39bab9b8f3c331c7..345de5087bd63ec4d8899a5fc208549f9a5cd3f8 100644 (file)
@@ -1,9 +1,9 @@
 #include <config.h>
 
 #include "../support/debug.h"
-#include "../support/regex.h"
 
 #include <iostream>
+#include <regex>
 
 
 using namespace lyx;
@@ -23,7 +23,7 @@ string test_ListingsCaption(string const & cap)
        //
        // NOTE that } is not allowed in blah2.
        regex const reg("(.*)\\\\label\\{(.*?)\\}(.*)");
-       string const new_cap("\\1\\3},label={\\2");
+       string const new_cap("$1$3},label={$2");
        return regex_replace(cap, reg, new_cap);
 }