Current master: Handling unknown body token: `\docbook_table_output'

Thibaut Cuvelier tcuvelier at lyx.org
Mon Jul 20 01:10:54 UTC 2020


On Mon, 20 Jul 2020 at 03:05, Richard Kimberly Heck <rikiheck at lyx.org>
wrote:

> On 7/19/20 8:25 PM, Scott Kostyshak wrote:
> > On Mon, Jul 20, 2020 at 01:57:53AM +0200, Thibaut Cuvelier wrote:
> >> On Sun, 19 Jul 2020 at 23:34, Pavel Sanda <sanda at lyx.org> wrote:
> >>
> >>> On Sun, Jul 19, 2020 at 11:19:08PM +0200, Pavel Sanda wrote:
> >>>> On Sun, Jul 19, 2020 at 11:01:08PM +0200, Thibaut Cuvelier wrote:
> >>>>> On Sun, 19 Jul 2020 at 22:33, Scott Kostyshak <skostysh at lyx.org>
> >>> wrote:
> >>>>>> I get the following on the terminal when starting a new document:
> >>>>>>
> >>>>>>   Text.cpp (1940): Handling unknown body token:
> >>> `\docbook_table_output'
> >>>>>>   Text.cpp (1940): Handling unknown body token: `0'
> >>>>>>
> >>>>> Hi Scott,
> >>>>>
> >>>>> I can't reproduce locally (d6ec3d686b316b968ac306fd9aeffa10fbcdc423,
> >>>>> Windows 10 x64, built with CMake, Visual C++ 2019). Here is what I
> did:
> >>>>> open LyX, create a new empty document (File > New), add some content,
> >>> save,
> >>>>> close, reopen.
> >>>> Try to open document with older format, e.g. tutorial in help menu.
> >>> I looked at the code and the offender is clear:
> >>> def convert_docbook_table_output(document) in lyx_2_4.py.
> >>>
> >>> We usually do not create convert function unless you really need to
> >>> convert some
> >>> older flag into new one etc. Just kick out this conversion routine and
> set
> >>> somewhere in bufferparams initialization routines this variable to 0 if
> >>> not done yet.
> >>> Older docs will be set properly this way.
> >>>
> >> I've removed this function in the last commit. By default, it should
> still
> >> be zero, even without lyx2lyx doing something. At least, the message is
> >> gone for me.
> > Thanks, Thibaut. The message is now gone for me. The reason I got it
> > before when starting a new document is because I use a default document,
> > which was in an older format.
>
> I'm still puzzled why we should get that. If the lyx2lyx conversion adds
> it to the new format, then it should be read properly. Right?
>

Is it added at the right place? This error is generated at a strange place
in the code: in Text::read, while this tag should be read in BufferParams::
readToken.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20200720/6ea36200/attachment-0001.html>


More information about the lyx-devel mailing list