docsw: trim the section file