ruby-formatter/rufo

rufo adds space to heredocs in argument lists, twice

lastobelus opened this issue · 0 comments

before formatting:

        csv_import.add_row_note!(
          ix,
          <<-EOM
            unable to find shopify variant by sku #{sku}
            found sku_map #{sku_map.id} with product #{shopify_product.id}, but there was no matching variant"
          EOM
        )

after first formatting:

        csv_import.add_row_note!(
          ix,
          <<-EOM
            unable to find shopify variant by sku #{sku}
            found sku_map #{sku_map.id} with product #{shopify_product.id}, but there was no matching variant"
          EOM
        
)

after second formatting:

        csv_import.add_row_note!(
          ix,
          <<-EOM
            unable to find shopify variant by sku #{sku}
            found sku_map #{sku_map.id} with product #{shopify_product.id}, but there was no matching variant"
          EOM

        
)

Subsequent formats maintain the third version.

See also #110.