+
+ -- Store the first line's indent
+ if not first_indent then
+ first_indent = utf.len(newind)
+ end
+
+ -- Strip the indent of the first line from this line's indent.
+ newind = utf.sub(newind, first_indent + 1)
+ -- Rebuild line, so we can still use it below
+ line = newind .. rest
+