We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e628909 commit 31e0650Copy full SHA for 31e0650
modules/python/generator/visp_python_bindgen/doc_parser.py
@@ -84,9 +84,18 @@ def to_cstring(s: str) -> str:
84
s = re.sub('\n\n\n+', '\n\n', s)
85
s = re.sub('\\\\ +', '\\\\', s)
86
87
- return f'''R"doc(
88
-{s}
89
-)doc"'''
+ # On Windows, strings have a maximum length.
+ per_string_limit = 8192
+ current_char = 0
90
+ result = ''
91
+ while current_char < len(s):
92
+ result += f'''R"doc(
93
+{s[current_char: min((current_char + per_string_limit), len(s))]})doc"
94
+
95
+'''
96
+ current_char += per_string_limit
97
+ return result
98
99
100
@dataclass
101
class MethodDocSignature:
0 commit comments