def get_containing_layout(lines, i):
'''
Finds out what kind of layout line i is within. Returns a
- list containing (i) what follows \begin_layout on the line
+ list containing what follows \begin_layout on the line
on which the layout begins, plus the starting and ending line
- and the start of the apargraph (after all params).
+ and the start of the paragraph (after all params). I.e, returns:
+ (layoutname, layoutstart, layoutend, startofcontent)
Returns False on any kind of error.
'''
j = i