Do right and fear no man, don't write and fear no woman

Any ideas on the origin of "Do right and fear no man, don't write and fear no woman"?

It is sometimes attributed to Mark Twain, but I have doubts. ╔ SS ╗

Replies