DocBook: implement CALS tables

Richard Kimberly Heck rikiheck at lyx.org
Thu Jul 16 14:59:35 UTC 2020


On 7/15/20 6:45 PM, Thibaut Cuvelier wrote:
> On Wed, 15 Jul 2020 at 22:01, Richard Kimberly Heck <rikiheck at lyx.org
> <mailto:rikiheck at lyx.org>> wrote:
>
>     On 7/15/20 2:47 PM, Thibaut Cuvelier wrote:
>
>>     +def revert_docbook_table_output(document):
>>     +    i = find_token(document.header, '\\docbook_table_output 0')
>>     +    i = find_token(document.header, '\\docbook_table_output 1')
>>     if i == -1 else i
>>     +    if i != -1:
>>     +        del document.header[i]
>     Here, just:
>
>         del_token(document.header, "\\docbook_table_output")
>
>     should be enough, though you will want to test.
>
> I tested conversion from old format, changing values within LyX (to
> ensure the parameter is written at the right place…), and exporting
> back to 2.3. Do you have other scenarios in mind? 

That's adequate. We really need a serious test suite for this but don't
yet have one.

RIki



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20200716/476de04c/attachment.html>


More information about the lyx-devel mailing list