You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
defrender(assigns)doifassigns.count==5doraise"Crash on render"end~H"""<span><%=@count %></span><buttonphx-click="inc">+</button><buttonphx-click="dec">-</button><buttonphx-click="error">Crash on handle_event</button><.linkhref="/?crash=mount">Crash on mount</.link><.linkpatch="/?crash=handle_params">Crash on handle_params</.link><styletype="text/css"> body {padding: 1em;}</style>"""end
And I change it to (just added the new class to the first <span> element):
defrender(assigns)doifassigns.count==5doraise"Crash on render"end~H"""<spanclass="new"><%=@count %></span><buttonphx-click="inc">+</button><buttonphx-click="dec">-</button><buttonphx-click="error">Crash on handle_event</button><.linkhref="/?crash=mount">Crash on mount</.link><.linkpatch="/?crash=handle_params">Crash on handle_params</.link><styletype="text/css"> body {padding: 1em;}</style>"""end
When using basic git diff it highlights the changed line. On the other hand, difftastic highlights the whole block:
It is important to note that diffs are properly highlighted on HEEx files. The problem appears only on embedded HEEx blocks.
When changing code inside an embedded HEEx sigil on Elixir, difftastic is not highlighting the changes but the whole sigil.
I have the following code:
And I change it to (just added the
new
class to the first<span>
element):When using basic git diff it highlights the changed line. On the other hand, difftastic highlights the whole block:
It is important to note that diffs are properly highlighted on HEEx files. The problem appears only on embedded HEEx blocks.
I am using latest difftastic on MacOS:
The text was updated successfully, but these errors were encountered: