Is it possible to ignore the first Line Break in a preformatted Div from a shortcode?
You could try replacing the extra <br /> at the beginning of the shortcode content. You could achieve that in many ways, but here’s an example: if( ‘<br />’ === substr( ltrim( $content ), 0, 6 ) ) $content = substr( ltrim( $content ), 6 ); return ‘<div class=”pncode”>’ . $content . ‘</div>’; where we … Read more