I want to edit the following text so that every line begins with Dealer:. This means no wrapping/line breaks. For lines starting with System, wrapping is fine.
What would a solution in ruby look like? Thanks
This is located in a .txt file
Dealer: 5 seconds left to act
Dealer: hitman2714 wins the pot (9)
Dealer: Hand #1684326626D
Dealer: Guitou699 has 5 seconds left to
act
Dealer: Guit¤u699 has timed out
Dealer: baj Hasan has 5 seconds left to
act
Dealer: baj Hasan has timed out
Dealer: hitman2714 has 5 seconds left
to act
Dealer: hitman2714 has timed out
System: The nightly $10,000 guarantee
will be starting in 20 minutes
Dealer: Dealer: Hand #1684326626D
Dealer: Perspextive posts the big
blind of 25
Desired output:
Dealer: 5 seconds left to act
Dealer: hitman2714 wins the pot (9)
Dealer: Hand #1684326626D
Dealer: Guitou699 has 5 seconds left to act
Dealer: Guit¤u699 has timed out
Dealer: baj Hasan has 5 seconds left to act
Dealer: baj Hasan has timed out
Dealer: hitman2714 has 5 seconds left
to act
Dealer: hitman2714 has timed out
System: The nightly $10,000 guarantee
will be starting in 20 minutes
Dealer: Dealer: Hand #1684326626D
Dealer: Perspextive posts the big blind of 25