Firstly, it's great to see that there are now line numbers for both original and override files, but copy-and-paste doesn't work as expected.
Copy text from more than one line in the original to copy back into the override will copy just the code from the original file.
Highlight several lines and it copies the lines in both the original AND the override file and pastes both. See example from /html/com_users/registration/default.php override. The top part has been pasted and I have re-highlighted the copied text:
The only way to avoid this is to copy and paste one line at a time, which is a pain if there is a block of, say, eight lines.
Labels |
Added:
No Code Attached Yet
|
Labels |
Added:
bug
|
If this is believed to be an issue of php-diff, can we simplify this to
$old = ???
$new = ???
$differOptions = ???
$rendererOptions = ???
...
...
Since I don't use Joomla! and obviously I won't install/configure it for testing this.
Status | New | ⇒ | Confirmed |
Oh wait. This is not related to "diff" itself. But more like a CSS or layout issue?
Just checked the upstream demo and its the same as here. Basically with the current code the side by side view will always work this way as the markup is horizontal and not vertical (see screenshot for a better explanation)
@Scrabble96 if you go to to the template manager options you can change from side by side to inline for the display of the php-diff. Thats all I can suggest for now
@Scrabble96 if you go to to the template manager options you can change from side by side to inline for the display of the php-diff. Thats all I can suggest for now
Thanks. That works perfectly and makes much more sense - to me, at least. Perhaps that should be the default layout?
For everyone that prefers an inline diff there will be others that prefer side by side
Nothing to do here
Status | Confirmed | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2024-02-18 18:50:11 |
Closed_By | ⇒ | Quy |
I can replicate this when there are multiple changed lines.
@jfcherng is this a known issue or did I miss a config setting?