File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
src/sage_setup/autogen/flint Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -176,11 +176,16 @@ def process_line(self):
176
176
line = self .lines [self .i ]
177
177
if line .startswith ('.. function::' ):
178
178
self .add_declaration ()
179
- if line [13 ] != ' ' :
179
+ line_rest = line .removeprefix ('.. function::' )
180
+ if not line_rest .startswith (' ' ):
180
181
print ('Warning: no space {}' .format (line ))
181
- self .signatures .append (line [13 :].strip ())
182
182
self .state = self .FUNCTION_DECLARATION
183
183
self .i += 1
184
+ signature = line_rest .strip ()
185
+ while signature .endswith ('\\ ' ):
186
+ signature = signature .removesuffix ('\\ ' ).strip () + ' ' + self .lines [self .i ].strip ()
187
+ self .i += 1
188
+ self .signatures .append (signature )
184
189
elif line .startswith ('.. macro::' ):
185
190
self .add_declaration ()
186
191
if line [10 ] != ' ' :
You can’t perform that action at this time.
0 commit comments