ToC loses indentation when exported to PDF

ToC loses indentation when exported to PDF

As seen in the attachments, the Table of Contents loses its indentation when it is exported into a PDF document.