I remember my father reading me a book that had this subplot when I was about 8 or 9. I'm pretty sure it was a kid's book, but this plot makes me wonder if it was more so intended for teenagers or young adults.
I don't remeber the main plot of this book at all, just this. A father finds out that his teenager daughter is pregnant, and he beats her so badly that she miscarries. The townspeople are all outraged, and he later hangs himself in his shed.
I'm pretty sure that the book took place in a fantasy land, likely in the Victorian era or a bit earlier.
I don't know exactly when it was written, but I'd guess some time between the 70's and the early 2000's