10
10
11
11
# File Header:
12
12
def GetHeader ():
13
- return """# How to Use the Intercept Layer for OpenCL Applications
13
+ return r """# How to Use the Intercept Layer for OpenCL Applications
14
14
15
15
This file is automatically generated using the script `generate_controls_doc.py`.
16
16
Please do not edit it manually!
@@ -145,7 +145,7 @@ def GetHeader():
145
145
146
146
# File Footer:
147
147
def GetFooter ():
148
- return """
148
+ return r """
149
149
---
150
150
151
151
\* Other names and brands may be claimed as the property of others.
@@ -184,7 +184,7 @@ def GetFooter():
184
184
numberOfControls = 0
185
185
186
186
for line in srcFile :
187
- separator = re .search ("^CLI_CONTROL_SEPARATOR\((.*)\)$" , line )
187
+ separator = re .search (r "^CLI_CONTROL_SEPARATOR\((.*)\)$" , line )
188
188
if separator :
189
189
full = separator .group (1 ).strip ()
190
190
@@ -198,7 +198,7 @@ def GetFooter():
198
198
numberOfSeparators = numberOfSeparators + 1
199
199
continue
200
200
201
- control = re .search ("^CLI_CONTROL\((.*)\)$" , line )
201
+ control = re .search (r "^CLI_CONTROL\((.*)\)$" , line )
202
202
if control :
203
203
full = control .group (1 ).strip ()
204
204
@@ -218,8 +218,8 @@ def GetFooter():
218
218
# Replace underscores with escaped underscores:
219
219
description = description .replace ("_" , "\\ _" )
220
220
# Escape angle brackets:
221
- description = description .replace ("<" , "\<" )
222
- description = description .replace (">" , "\>" )
221
+ description = description .replace ("<" , r "\<" )
222
+ description = description .replace (">" , r "\>" )
223
223
224
224
docFile .write ('##### `' + name + '` (' + type + ')\n \n ' )
225
225
docFile .write (description + '\n \n ' )
0 commit comments