'How can I separate this .txt file for each item using js?

**I have a list of notices in a .txt file which I would like to separate into individual notices automatically. The spacing in the file has gone horribly wrong (I scraped this from my school's web portal) and there are duplicate descriptions for each notice and much more space than there should be between each notice, with odd indentations.

The .txt file looks something like the following (teacher's names hidden):**





            Limited Boys' changing in the Sports Centre this afternoon.



Any pupils needing to use the Boys' Changing Rooms in the Sports Centre this afternoon should use the adjacent Overflow Changing area instead. The Boys' Changing Rooms are reserved for the 1st XI's opposition. 
Boys' toilets can be accessed still via the door next to the Climbing wall in the Main Hall.
            
Posted by: Teacher1



Any pupils needing to use the Boys' Changing Rooms in the Sports Centre this afternoon should use the adjacent Overflow Changing area instead. The Boys' Changing Rooms are reserved for the 1st XI's opposition. 
Boys' toilets can be accessed still via the door next to the Climbing wall in the Main Hall.
            
Posted by: Teacher1






            Wednesday at 1.15pm:Jewish Society (RoomLocation)



‘The Interesting story: was it this positive thing, this positive thing, or this particularly negative thing?' Come to listen to this speech by this person at this time in this room in this building to learn about this thing.
            
Posted by: Teacher2



‘The Interesting story: was it this positive thing, this positive thing, or this particularly negative thing?' Come to listen to this speech by this person at this time in this room in this building to learn about this thing.
            
Posted by: Teacher2 

Please see my other question asked to see how I converted a .txt file to .json file using tuphamdev96's help.

Thanks in advance for any help or advice!

I tried using the converter which I used for the sports fixtures (see my other post) but as it was made to convert based on that specific spacing, it did not work and couldn't separate each of the items.

I would basically like to parse this data and separate it (removing spacing and duplicates) in order to use it as a .json file in my React website. I have made .json files out of a sports fixtures .txt file (with correct spacing, credits to tuphamdev96) and would simply like to know which line breaks I can separate this by in order to get each item (such as \n and \r etc.)



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source