Skip to content

Commit c9eb29f

Browse files
committed
Improve formatting of inline style tag
1 parent 6608a4e commit c9eb29f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/image-prioritizer/class-image-prioritizer-background-image-styled-tag-visitor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ private function lazy_load_bg_images( OD_Tag_Visitor_Context $context ): void {
129129
$processor->add_class( self::LAZY_BG_IMAGE_CLASS_NAME );
130130

131131
if ( ! $this->added_lazy_stylesheet ) {
132-
$processor->append_head_html( sprintf( '<style>%s</style>', image_prioritizer_get_lazy_load_bg_image_stylesheet() ) );
132+
$processor->append_head_html( sprintf( "<style>\n%s\n</style>\n", image_prioritizer_get_lazy_load_bg_image_stylesheet() ) );
133133
$this->added_lazy_stylesheet = true;
134134
}
135135

0 commit comments

Comments
 (0)