JDMCreator / LaTeXTableEditor

readme
MIT License
139 stars 13 forks source link

Issue when double borders intersects #38

Closed JDMCreator closed 6 months ago

JDMCreator commented 3 years ago

See the following example :

{
    "options": {
        "latex-whitespace": false,
        "latex-border": true,
        "latex-split": false,
        "latex-landscape": false,
        "latex-float": true,
        "fit-table": "none",
        "latex-hhline": false,
        "latex-hhline-hash": true,
        "latex-tabu": false,
        "latex-microfix-alignment": false,
        "tex-escape": true,
        "tex-macro": true,
        "html-indent": "tab",
        "html-tbody": false,
        "html-remove-tag": false,
        "csv-separator": ",",
        "bbcode-header": "1",
        "pretext-indent": "two",
        "context-split": false,
        "context-landscape": false,
        "context-float": true,
        "context-indent": "two",
        "wml-indent": "four"
    },
    "autoBooktabs": false,
    "caption": {
        "caption": "",
        "numbered": false,
        "label": "tab:my-table"
    },
    "cells": [
        [
            {
                "dataset": {
                    "borderTop": "double",
                    "borderLeft": "double",
                    "borderRight": "double"
                },
                "html": "A",
                "css": "border-top: 2px double rgb(0, 0, 0); border-left: 2px double rgb(0, 0, 0); border-right: 2px double rgb(0, 0, 0); background-color: rgb(128, 255, 128);"
            },
            {
                "dataset": {
                    "borderTop": "double",
                    "borderLeft": "double",
                    "borderBottom": "double"
                },
                "html": "B<br>",
                "css": "border-top: 2px double rgb(0, 0, 0); border-left: 2px double rgb(0, 0, 0); border-bottom: 2px double rgb(0, 0, 0); background-color: rgb(255, 255, 128);"
            },
            {
                "dataset": {
                    "borderTop": "double"
                },
                "html": "C",
                "css": "border-top: 2px double rgb(0, 0, 0); background-color: rgb(255, 255, 128);"
            },
            {
                "dataset": {
                    "borderTop": "double",
                    "borderRight": "double"
                },
                "html": "D",
                "css": "border-top: 2px double rgb(0, 0, 0); border-right: 2px double rgb(0, 0, 0); background-color: rgb(255, 255, 128);"
            }
        ],
        [
            {
                "dataset": {
                    "borderLeft": "double",
                    "borderBottom": "double"
                },
                "html": "E",
                "css": "border-left: 2px double rgb(0, 0, 0); background-color: rgb(128, 255, 128); border-bottom: 2px double rgb(0, 0, 0);"
            },
            {
                "dataset": {
                    "borderTop": "double",
                    "borderRight": "double",
                    "borderBottom": "double"
                },
                "html": "F",
                "css": "border-top: 2px double rgb(0, 0, 0); border-right: 2px double rgb(0, 0, 0); background-color: rgb(128, 255, 128); border-bottom: 2px double rgb(0, 0, 0);"
            },
            {
                "dataset": {
                    "borderLeft": "double",
                    "borderBottom": "double"
                },
                "html": "G",
                "css": "border-left: 2px double rgb(0, 0, 0); border-bottom: 2px double rgb(0, 0, 0); background-color: rgb(255, 255, 128);"
            },
            {
                "dataset": {
                    "borderRight": "double"
                },
                "html": "H",
                "css": "border-right: 2px double rgb(0, 0, 0); background-color: rgb(255, 255, 128);"
            }
        ],
        [
            {
                "dataset": {
                    "borderLeft": "double",
                    "borderTop": "double"
                },
                "html": "I",
                "css": "border-left: 2px double rgb(0, 0, 0); background-color: rgb(128, 255, 128); border-top: 2px double rgb(0, 0, 0);"
            },
            {
                "dataset": {
                    "borderTop": "double",
                    "borderRight": "double",
                    "borderBottom": "double"
                },
                "html": "J",
                "css": "background-color: rgb(128, 255, 128); border-top: 2px double rgb(0, 0, 0); border-right: 2px double rgb(0, 0, 0); border-bottom: 2px double rgb(0, 0, 0);"
            },
            {
                "dataset": {
                    "borderTop": "double",
                    "borderRight": "double",
                    "borderLeft": "double"
                },
                "html": "K",
                "css": "border-top: 2px double rgb(0, 0, 0); border-right: 2px double rgb(0, 0, 0); background-color: rgb(128, 255, 128); border-left: 2px double rgb(0, 0, 0);"
            },
            {
                "dataset": {
                    "borderRight": "double",
                    "borderLeft": "double",
                    "borderBottom": "double"
                },
                "html": "L",
                "css": "border-right: 2px double rgb(0, 0, 0); border-left: 2px double rgb(0, 0, 0); border-bottom: 2px double rgb(0, 0, 0); background-color: rgb(255, 255, 128);"
            }
        ],
        [
            {
                "dataset": {
                    "borderLeft": "double",
                    "borderBottom": "double",
                    "borderRight": "double"
                },
                "html": "M",
                "css": "border-left: 2px double rgb(0, 0, 0); border-bottom: 2px double rgb(0, 0, 0); background-color: rgb(128, 255, 128); border-right: 2px double rgb(0, 0, 0);"
            },
            {
                "dataset": {
                    "borderBottom": "double",
                    "borderTop": "double",
                    "borderLeft": "double"
                },
                "html": "N",
                "css": "border-bottom: 2px double rgb(0, 0, 0); background-color: rgb(128, 255, 128); border-top: 2px double rgb(0, 0, 0); border-left: 2px double rgb(0, 0, 0);"
            },
            {
                "dataset": {
                    "borderBottom": "double"
                },
                "html": "O<br>",
                "css": "border-bottom: 2px double rgb(0, 0, 0); background-color: rgb(128, 255, 128);"
            },
            {
                "dataset": {
                    "borderBottom": "double",
                    "borderRight": "double",
                    "borderTop": "double"
                },
                "html": "P",
                "css": "border-bottom: 2px double rgb(0, 0, 0); border-right: 2px double rgb(0, 0, 0); border-top: 2px double rgb(0, 0, 0); background-color: rgb(128, 255, 128);"
            }
        ]
    ],
    "version": "2.0.6"
}