Open sujato opened 4 months ago
html
column must display so that superuser can edit manually.See original issue here: https://github.com/suttacentral/bilara/issues/157
The basic problem is that we cannot predict or automate how the HTML will look when splitting so it must be done manually.
So whenever split or merge is performed, the HTML column must be displayed. Then the superuser can edit it and confirm the split or merge.
You can see here, it says undefined
The problem is that the merging numbers cross a major segment number, i.e. we are merging sn7.3:1.6
with sn7.3:2.1
.
The basic principle here is that we should always recalculate the following segment numbers so we can merge automatically, except if the numbering is not standard, for example if there are hyphens in the segment numbers. In that case it is too complex and it better be done manually.
But this is not such a case. Here the numbering is standard and we should be able to merge it.
In this case, the former segment sn7.3:2.1
is merged with sn7.3:1.6
. Then we should change :
sn7.3:2.2
⇨ sn7.3:2.1
sn7.3:2.3
⇨ sn7.3:2.2
sn7.3:2.4
⇨ sn7.3:2.3
And that's it.
Currently they are appearing on the new segment, eg.:
Old:
The text is on segment
sn7.1:1.4
. But after splitting we have:Now the text is on segment
sn7.1:1.5
. It should be: