WP’s text widget doesn’t run text through the_content
filter, it applies wpautop()
on saved text explicitly in code:
<div class="textwidget"><?php echo !empty( $instance['filter'] ) ? wpautop( $text ) : $text; ?></div>
This is controlled by aptly named “Automatically add paragraphs” setting at the bottom of the widget.