| | @@ -1898,26 +1898,27 @@ |
| 1898 | 1898 | int iCol = 0; |
| 1899 | 1899 | dfunifiedEmitInsert(p); |
| 1900 | 1900 | p->lnLeft++; |
| 1901 | 1901 | p->lnRight++; |
| 1902 | 1902 | blob_appendf(p->pOut,"%6d %6d \n", p->lnLeft, p->lnRight); |
| 1903 | + blob_append(&p->aCol[0], " ", 2); |
| 1903 | 1904 | jsonize_to_blob(&p->aCol[0], pLine->z, (int)pLine->n, &iCol); |
| 1904 | 1905 | blob_append_char(&p->aCol[0], '\n'); |
| 1905 | 1906 | } |
| 1906 | 1907 | static void dfunifiedInsert(DiffBuilder *p, const DLine *pLine){ |
| 1907 | 1908 | int iCol = 0; |
| 1908 | 1909 | p->lnRight++; |
| 1909 | 1910 | blob_appendf(&p->aCol[1],"<ins> %6d </ins>\n", p->lnRight); |
| 1910 | | - blob_append(&p->aCol[2],"<ins><mark>",-1); |
| 1911 | + blob_append(&p->aCol[2],"<ins>+ <mark>",-1); |
| 1911 | 1912 | jsonize_to_blob(&p->aCol[2], pLine->z, (int)pLine->n, &iCol); |
| 1912 | 1913 | blob_append(&p->aCol[2], "</mark></ins>\n", -1); |
| 1913 | 1914 | } |
| 1914 | 1915 | static void dfunifiedDelete(DiffBuilder *p, const DLine *pLine){ |
| 1915 | 1916 | int iCol = 0; |
| 1916 | 1917 | p->lnLeft++; |
| 1917 | 1918 | blob_appendf(p->pOut,"<del>%6d </del>\n", p->lnLeft); |
| 1918 | | - blob_append(&p->aCol[0],"<del><mark>",-1); |
| 1919 | + blob_append(&p->aCol[0],"<del>- <mark>",-1); |
| 1919 | 1920 | jsonize_to_blob(&p->aCol[0], pLine->z, (int)pLine->n, &iCol); |
| 1920 | 1921 | blob_append(&p->aCol[0], "</mark></del>\n", -1); |
| 1921 | 1922 | } |
| 1922 | 1923 | static void dfunifiedEdit(DiffBuilder *p, const DLine *pX, const DLine *pY){ |
| 1923 | 1924 | int i; |
| | @@ -1926,11 +1927,11 @@ |
| 1926 | 1927 | ChangeSpan span; |
| 1927 | 1928 | oneLineChange(pX, pY, &span); |
| 1928 | 1929 | p->lnLeft++; |
| 1929 | 1930 | p->lnRight++; |
| 1930 | 1931 | blob_appendf(p->pOut,"<del>%6d </del>\n", p->lnLeft); |
| 1931 | | - blob_append(&p->aCol[0], "<del>", -1); |
| 1932 | + blob_append(&p->aCol[0], "<del>- ", -1); |
| 1932 | 1933 | for(i=x=iCol=0; i<span.n; i++){ |
| 1933 | 1934 | int ofst = span.a[i].iStart1; |
| 1934 | 1935 | int len = span.a[i].iLen1; |
| 1935 | 1936 | if( len ){ |
| 1936 | 1937 | jsonize_to_blob(&p->aCol[0], pX->z+x, ofst - x, &iCol); |
| | @@ -1942,11 +1943,11 @@ |
| 1942 | 1943 | } |
| 1943 | 1944 | } |
| 1944 | 1945 | if( x<pX->n ) jsonize_to_blob(&p->aCol[0], pX->z+x, pX->n - x, &iCol); |
| 1945 | 1946 | blob_append(&p->aCol[0], "</del>\n", -1); |
| 1946 | 1947 | blob_appendf(&p->aCol[1],"<ins> %6d </ins>\n", p->lnRight); |
| 1947 | | - blob_append(&p->aCol[2], "<ins>", -1); |
| 1948 | + blob_append(&p->aCol[2], "<ins>+ ", -1); |
| 1948 | 1949 | for(i=x=iCol=0; i<span.n; i++){ |
| 1949 | 1950 | int ofst = span.a[i].iStart2; |
| 1950 | 1951 | int len = span.a[i].iLen2; |
| 1951 | 1952 | if( len ){ |
| 1952 | 1953 | jsonize_to_blob(&p->aCol[2], pY->z+x, ofst - x, &iCol); |
| 1953 | 1954 | |