joshy / striprtf

Stripping rtf to plain old text
http://striprtf.dev
BSD 3-Clause "New" or "Revised" License
94 stars 27 forks source link

Cuts off first word of line. #12

Closed MalikRumi closed 3 years ago

MalikRumi commented 3 years ago

It is losing the hours of a time format, i.e. r'\d\d:\d\d' becomes r':\d\d', if it is at the start of a line. It also loses the first word of a new line. I've have been staring at the rtf code inside the documents but have not been able to determine a causal pattern, because sometimes it doesn't take all the first words and sometimes it leaves the time alone, too.

After convert:.........|..........Original rtf: 10:56 AM ............. |..........10:56 AM\par s so funny..............|.......... It's so funny.

, January 13, 2010.. |........Wednesday, January 13, 2010}

and so on.

joshy commented 3 years ago

Can you please provide a full rtf sample? Which program did create the rtf?

joshy commented 3 years ago

Closing issue because of inactivity.