Complex sentence: The entire line was closed for the duration of World War II, though maintained so that in July 1945 it reopened and, in 1948, passed into the hands of British Railways.
Split into simpler sentences: The entire line was closed for the duration of World War II, though maintainance continued. In July 1945 it reopened and in 1948 the line passed into the hands of British Railways.