From: Stefan Beller Date: Tue, 30 Jan 2018 18:26:41 GMT Subject: Re: Feature request: Improve diff algorithm Message-ID: In-Reply-To: <1408921517058505@web15o.yandex.ru> On Sat, Jan 27, 2018 at 5:08 AM, KES wrote: > One yet more: > > @@ -43,22 +44,25 @@ sub tariff_title { > 1; > > __DATA__ > -@@ control/tariff.css > -* { > - margin: 0; > - padding: 0; > - border: 0; > - -webkit-box-sizing: border-box; > - box-sizing: border-box; } > -html { > - background-color: #121212; > - color: white; > - font-family: 'Roboto', 'Arial', sans-serif; > - font-size: 16px; } > -a { > - cursor: pointer; } > > > +@@ control/tariff_about_old.html.ep > +
> +
> +
> +

<%= $title %>

> +
> +
> +

<%== $option1 %><%= stash->{ comment1 }? " (" .stash->{ comment1 }.")": '' %> +

> + > + > +
> +

<%== $option2 %><%= stash->{ comment2 }? " (" .stash->{ comment2 }.")": '' %> +

> +
> + > +@@ control/tariff.css > /* BASE BUTTON FOR TARIFF CARD */ > .button { > display: -webkit-box; > > But it would be better if `@@ control/tariff.css` were untouched: > > @@ -43,22 +44,25 @@ sub tariff_title { > 1; > > __DATA__ > + > + > +@@ control/tariff_about_old.html.ep > +
> +
> +
> +

<%= $title %>

> +
> +
> +

<%== $option1 %><%= stash->{ comment1 }? " (" .stash->{ comment1 }.")": '' %> +

> + > + > +
> +

<%== $option2 %><%= stash->{ comment2 }? " (" .stash->{ comment2 }.")": '' %> +

> +
> + > @@ control/tariff.css > -* { > - margin: 0; > - padding: 0; > - border: 0; > - -webkit-box-sizing: border-box; > - box-sizing: border-box; } > -html { > - background-color: #121212; > - color: white; > - font-family: 'Roboto', 'Arial', sans-serif; > - font-size: 16px; } > -a { > - cursor: pointer; } > - > - > /* BASE BUTTON FOR TARIFF CARD */ > .button { > display: -webkit-box; > Try the new option that Jonathan Tan implemented: git diff --anchor="@@ control/tariff.css" to produce the second diff. I wonder if we want to have a permanent store for these lines in given diffs, such that you only have to figure it out once. (And eventually the community will have a corpus of data to figure out how to improve the diff for real)