Skip to content

Commit f9f9945

Browse files
committed
remove unnecessary colspans
1 parent 980d97b commit f9f9945

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ This project uses [diff2html](https://github.com/rtfpessoa/diff2html) as base.
1010

1111
* `line-by-line` and `side-by-side` diff
1212

13-
* char-by-char highlight
14-
1513
* new and old line numbers
1614

1715
* inserted and removed lines

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "diff2html",
3-
"version": "0.1.6-1",
3+
"version": "0.1.6-2",
44

55
"homepage": "https://www.github.com/rtfpessoa/diff2html-nodejs",
66
"description": "Fast Diff to colorized HTML",

src/diff2html.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ module.exports = (function () {
213213
return file.blocks.map(function (block) {
214214

215215
var lines = "<tr>\n" +
216-
" <td class=\"d2h-code-linenumber " + LINE_TYPE.INFO + "\" colspan=\"2\"></td>\n" +
216+
" <td class=\"d2h-code-linenumber " + LINE_TYPE.INFO + "\"></td>\n" +
217217
" <td class=\"" + LINE_TYPE.INFO + "\">" +
218218
" <div class=\"d2h-code-line " + LINE_TYPE.INFO + "\">" + escape(block.header) + "</div>" +
219219
" </td>\n" +
@@ -314,14 +314,14 @@ module.exports = (function () {
314314

315315
fileHtml.left += "<tr>\n" +
316316
" <td class=\"d2h-code-side-linenumber " + LINE_TYPE.INFO + "\"></td>\n" +
317-
" <td class=\"" + LINE_TYPE.INFO + "\" colspan=\"3\">" +
317+
" <td class=\"" + LINE_TYPE.INFO + "\">" +
318318
" <div class=\"d2h-code-side-line " + LINE_TYPE.INFO + "\">" + escape(block.header) + "</div>" +
319319
" </td>\n" +
320320
"</tr>\n";
321321

322322
fileHtml.right += "<tr>\n" +
323323
" <td class=\"d2h-code-side-linenumber " + LINE_TYPE.INFO + "\"></td>\n" +
324-
" <td class=\"" + LINE_TYPE.INFO + "\" colspan=\"3\">" +
324+
" <td class=\"" + LINE_TYPE.INFO + "\">" +
325325
" <div class=\"d2h-code-side-line " + LINE_TYPE.INFO + "\"></div>" +
326326
" </td>\n" +
327327
"</tr>\n";

0 commit comments

Comments
 (0)