git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Unexpected diff is shown with -w -b options in effect

From
KKES <kes-kes@yandex.ru>
Date
Jul 11, 2016, 11:42 UTC
Message-ID
<275091468237350@web16g.yandex.ru>
Hi
For this diff
diff --git a/app/public/v2/index.html b/app/public/v2/index.html
index f73ba73..3af0c64 100644
--- a/app/public/v2/index.html
+++ b/app/public/v2/index.html
@@ -21,11 +21,15 @@
 </head>
 <body>
 <div id="media-width-detection-element"></div>
-<div id="rowTools" class="eRowTools btn-group btn-group-sm">
-	<div    type="button"              class="eBtnMov btn btn-default">MOV</div>
-	<button type="button" class="eBtnAdd btn btn-default" onclick="rowTools_add_click( this )">ADD</button>
-	<button type="button" class="eBtnDel btn btn-default" onclick="rowTools_del_click( this )">DEL</button>
-	<img src="img/add.png"/>
+<div id="rowTools" class="eRowTools">
+	<div class="eRow_Separator btn-group btn-group-sm">
+		<div    type="button" class="eBtnMov btn btn-default">MOV</div>
+		<button type="button" class="eBtnAdd btn btn-default" onclick="rowTools_add_click( this )">ADD</button>
+		<button type="button" class="eBtnDel btn btn-default" onclick="rowTools_del_click( this )">DEL</button>
+	</div>
+	<div class="eRow_ColAdd">
+		<img src="img/add.png"/>
+	</div>
 </div>
 <div id="colTools" class="eColTools"></div>
 <div class="container-fluid">

I see next:
diff --git a/app/public/v2/index.html b/app/public/v2/index.html
index f73ba73..d415c2d 100644
--- a/app/public/v2/index.html
+++ b/app/public/v2/index.html
@@ -21,12 +21,16 @@
 </head>
 <body>
 <div id="media-width-detection-element"></div>
-<div id="rowTools" class="eRowTools btn-group btn-group-sm">
+<div id="rowTools" class="eRowTools">
+    <div class="eRow_Separator btn-group btn-group-sm">
         <div    type="button" class="eBtnMov btn btn-default">MOV</div>
         <button type="button" class="eBtnAdd btn btn-default" onclick="rowTools_add_click( this )">
         <button type="button" class="eBtnDel btn btn-default" onclick="rowTools_del_click( this )">
+    </div>
+    <div class="eRow_ColAdd">
         <img src="img/add.png"/>
     </div>
+</div>                         <<<<<<<<<<<<<<<<<<<<<<<< IS NOT EXPECTED
 <div id="colTools" class="eColTools"></div>
 <div class="container-fluid">
 <div class="row">

But I expect to see:
diff --git a/app/public/v2/index.html b/app/public/v2/index.html
index f73ba73..d415c2d 100644
--- a/app/public/v2/index.html
+++ b/app/public/v2/index.html
@@ -21,12 +21,16 @@
 </head>
 <body>
 <div id="media-width-detection-element"></div>
-<div id="rowTools" class="eRowTools btn-group btn-group-sm">
+<div id="rowTools" class="eRowTools">
+    <div class="eRow_Separator btn-group btn-group-sm">
         <div    type="button" class="eBtnMov btn btn-default">MOV</div>
         <button type="button" class="eBtnAdd btn btn-default" onclick="rowTools_add_click( this )">
         <button type="button" class="eBtnDel btn btn-default" onclick="rowTools_del_click( this )">
+    </div>
+    <div class="eRow_ColAdd">
         <img src="img/add.png"/>
+     </div>                         <<<<<<<<<<<<<<<<<<<<<< EXPECT THIS
</div>
 <div id="colTools" class="eColTools"></div>
 <div class="container-fluid">
 <div class="row">


This seems to me a bug or should I apply some extra options to get expected behaviour?

PS$ git --version
git version 2.8.1
Next: Johannes Schindelin
Message 1 of 2 in “Unexpected diff is shown with -w -b options in effect”
  1. KESJul 11, 2016
  2. Johannes SchindelinJul 11, 2016

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.