- edited description
Table parsing inconsistencies with typescript
Issue #60
resolved
Inconsistency : Rows not closed with a pipe trim spaces#1
Request
|a
|c |
Typescript
...
{
"type": "tableCell",
"attrs": {},
"content": [
{
"type": "paragraph",
"content": [
{
"type": "text",
"text": "a "
}
]
}
]
}
...
adf-builder-java
...
{
"type" : "tableCell",
"attrs" : { },
"content" : [ {
"type" : "paragraph",
"content" : [ {
"type" : "text",
"text" : "a" <---- space trimmed
} ]
}
...
Note that this request produces "text": "a "
in both cases:
|a |
|c |
Inconsistency :Whitespace after tag with newline#2
Request | TS | lib |
---|---|---|
|{color:#11100f}{color} | |
Output A | Output A |
|{color:#11100f}{color} \n| |
Output A | Output B |
|{color:#11100f}\n{color} \n| |
Output A | Output B |
Output A
{
"type" : "doc",
"version" : 1,
"content" : [ {
"type" : "table",
"attrs" : {
"isNumberColumnEnabled" : false,
"layout" : "default"
},
"content" : [ {
"type" : "tableRow",
"content" : [ {
"type" : "tableCell",
"attrs" : { },
"content" : [ {
"type" : "paragraph",
"content" : [ {
"type" : "text",
"text" : " "
} ]
} ]
} ]
} ]
} ]
}
Output B
{
"type" : "doc",
"version" : 1,
"content" : [ {
"type" : "table",
"attrs" : {
"isNumberColumnEnabled" : false,
"layout" : "default"
},
"content" : [ {
"type" : "tableRow",
"content" : [ {
"type" : "tableCell",
"attrs" : { },
"content" : [ {
"type" : "paragraph",
"content" : [ ]
} ]
} ]
} ]
} ]
}
Comments (10)
-
reporter -
reporter -
assigned issue to
-
assigned issue to
-
reporter - changed status to open
-
reporter - edited description
-
reporter - edited description
-
reporter - edited description
-
reporter - edited description
-
reporter - edited description
-
reporter - edited description
-
reporter - changed status to resolved
- Log in to comment