A male version is usually Troubled, but Cute, and his heart of gold should never outweigh his inner jerk because All Girls Want Bad Boys, though it can if Single Woman Seeks Good Man. If his jerkishness threatens to overshadow his good qualities, he’s likely to attract a Love Martyr.

Source: Jerk with a Heart of Gold – TV Tropes