Libdoc: Turned search to continuous and added reset (#1872)
Libdoc: Template indentation
Libdoc: Avoid copying non-needed items in copy (#1872)