removed not useful nl2br in emails plain templates
This commit is contained in:
parent
baa8a7f158
commit
a5d21f4e56
|
@ -23,7 +23,7 @@ foreach ( $items as $item ) :
|
|||
echo ' (#' . $_product->get_sku() . ')';
|
||||
|
||||
// Variation
|
||||
echo $item_meta->meta ? "\n" . nl2br( $item_meta->display( true, true ) ) : '';
|
||||
echo $item_meta->meta ? "\n" . $item_meta->display( true, true ) : '';
|
||||
|
||||
// Quantity
|
||||
echo "\n" . sprintf( __( 'Quantity: %s', 'woocommerce' ), $item['qty'] );
|
||||
|
@ -32,7 +32,7 @@ foreach ( $items as $item ) :
|
|||
echo "\n" . sprintf( __( 'Cost: %s', 'woocommerce' ), $order->get_formatted_line_subtotal( $item ) );
|
||||
|
||||
// Download URLs
|
||||
if ( $show_download_links && $_product->exists() && $_product->is_downloadable() ) {
|
||||
if ( $show_download_links && $_product->exists() && $_product->is_downloadable() ) {
|
||||
$download_files = $order->get_item_downloads( $item );
|
||||
$i = 0;
|
||||
|
||||
|
@ -50,8 +50,8 @@ foreach ( $items as $item ) :
|
|||
|
||||
// Note
|
||||
if ( $show_purchase_note && $purchase_note = get_post_meta( $_product->id, '_purchase_note', true ) )
|
||||
echo "\n" . nl2br( $purchase_note );
|
||||
echo "\n" . $purchase_note;
|
||||
|
||||
echo "\n\n";
|
||||
|
||||
endforeach;
|
||||
endforeach;
|
||||
|
|
Loading…
Reference in New Issue